From 1c10d2c080176f05e82e7655e96734f4d3bb5d6c Mon Sep 17 00:00:00 2001 From: Rogier Neeleman Date: Thu, 25 Sep 2014 14:36:39 +0200 Subject: [PATCH] Nickserv authentication --- botconfig.py.example | 1 + modules/common.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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)