diff --git a/botconfig.py.example b/botconfig.py.example index 7f857df..678a639 100644 --- a/botconfig.py.example +++ b/botconfig.py.example @@ -6,6 +6,7 @@ USERNAME = "" # for authentication, can be left blank if same as NICK OPERUSER = "OPPER user" OPERPASS = "OPER password" NICK = "mywolfbot" +NICKPASS = "nickserv password" CMD_CHAR = "!" CHANGING_HOST_QUIT_MESSAGE = "Changing host" diff --git a/modules/common.py b/modules/common.py index ed211f4..afc92c4 100644 --- a/modules/common.py +++ b/modules/common.py @@ -98,7 +98,9 @@ def connect_callback(cli): def prepare_stuff(*args): cli.send("OPER", botconfig.OPERUSER, botconfig.OPERPASS) - + #cli.msg("NickServ", "IDENTIFY", botconfig.NICKPASS) + cli.ns_identify(botconfig.NICKPASS) + cli.join(botconfig.CHANNEL) cli.msg("ChanServ", "op "+botconfig.CHANNEL)