fix issues
This commit is contained in:
parent
496ec37bca
commit
20af75d6c2
5
bot.py
5
bot.py
|
@ -27,9 +27,6 @@ class MinerbotPhoenix(teambot.Handler):
|
|||
cmd = args.pop(0).lower()
|
||||
self.cmd = cmd
|
||||
if cmd in plugin.cmds:
|
||||
if self.event.source.userhost == "~jan6@127.0.0.1":
|
||||
self.say(channel,nick+": no u infinity")
|
||||
return
|
||||
try:
|
||||
plugin.cmds[cmd](self,channel,nick,*args)
|
||||
except TypeError:
|
||||
|
@ -42,5 +39,5 @@ class MinerbotPhoenix(teambot.Handler):
|
|||
|
||||
if __name__=="__main__":
|
||||
channels = "#bots".split()
|
||||
bot = teambot.TeamBot(channels,"minerbot","localhost",chandler=MinerbotPhoenix)
|
||||
bot = teambot.TeamBot(channels,"minerbot","localhost",username="Minerbot",chandler=MinerbotPhoenix)
|
||||
bot.start()
|
||||
|
|
Loading…
Reference in New Issue