Make the bot actually run :P
This commit is contained in:
parent
21268a0e4d
commit
c5c942d0f6
4
bot.py
4
bot.py
|
@ -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
|
||||
|
|
Reference in New Issue