Fix usage handler

This commit is contained in:
Robert Miles 2018-11-18 16:42:40 -05:00
parent 1e36a0479b
commit f074932f89
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -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: