Fix usage handler
This commit is contained in:
parent
1e36a0479b
commit
f074932f89
2
bot.py
2
bot.py
|
@ -34,7 +34,7 @@ class SOTDBot(teambot.Handler,teambot.CommandHandlerMixin):
|
|||
try:
|
||||
getattr(self,"do_"+cmd.lower())(*args)
|
||||
except TypeError as e:
|
||||
self.say(self.target,"{}: Usage: {}".format(nick,USAGE[command.lower()].format(self.prefix)))
|
||||
self.say(self.target,"{}: Usage: {}".format(nick,USAGE[cmd.lower()].format(self.prefix)))
|
||||
|
||||
def do_admin(self,*args):
|
||||
if self.sourcenick!=self.botop:
|
||||
|
|
Reference in New Issue