fixed raw commands

This commit is contained in:
lickthecheese 2020-01-31 19:47:42 -05:00
parent e3fa5f5a67
commit 47dc157781
1 changed files with 5 additions and 7 deletions

12
bot.py
View File

@ -36,13 +36,11 @@ class Circles(teambot.Handler):
self.cmd[cmd](self,c,n,m)
except TypeError:
self.say(c,n+": Usage: "+self.help[cmd])
args = m.strip().split()
cmd = args.pop
if cmd in self.raw:
try:
self.raw[cmd](self,c,n,m)
except TypeError:
self.say(c,n+": Usage: "+self.help[cmd])
try:
for i in self.raw:
self.raw[i](self,c,n,m)
except TypeError:
self.say(c,n+": Usage: "+self.help[cmd])
if __name__=="__main__":
chans = ['#chaos']