Make the bot actually run :P

This commit is contained in:
Robert Miles 2018-11-14 20:07:05 -05:00
parent 21268a0e4d
commit c5c942d0f6
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -9,10 +9,10 @@ def get_title(link):
return link # TODO: actually make this get the title of a link.
class SOTDBot(teambot.Handler,teambot.CommandHandlerMixin):
def __init__(self):
def __init__(self,*args):
self.prefix = "!"
self.botop = "khuxkm"
super(SOTDBot,self).__init__()
super(SOTDBot,self).__init__(*args)
def handle_command(self,target,nick,text):
if not text.startswith(self.prefix):
return