Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def on_kick(self, connection, event):
connection.join(self.__config.CHANNEL)

def on_welcome(self, connection, event):
"""Authenticate using NickServ"""
if self.__config.NICKPASS:
self.connection.privmsg("NickServ", "IDENTIFY {}".format(self.__config.NICKPASS))
"""Join the correct channel upon connecting"""
if irc.client.is_channel(self.__config.CHANNEL):
connection.join(self.__config.CHANNEL)
Expand Down
1 change: 1 addition & 0 deletions config.py.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class Config(object):
self.SSL = False
self.CHANNEL = "##YOURCHANNEL"
self.NICK = "YOURBOTNICK"
self.NICKPASS = "YOURPASSWORD"
self.admin_nicks= ['YOURADMINNICK']
#=Colours=
#1 - red 2 - green 3 - yellow
Expand Down