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:
|
try:
|
||||||
getattr(self,"do_"+cmd.lower())(*args)
|
getattr(self,"do_"+cmd.lower())(*args)
|
||||||
except TypeError as e:
|
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):
|
def do_admin(self,*args):
|
||||||
if self.sourcenick!=self.botop:
|
if self.sourcenick!=self.botop:
|
||||||
|
|
Reference in New Issue