fix issues

This commit is contained in:
minerobber 2019-01-10 14:50:30 +00:00
parent 496ec37bca
commit 20af75d6c2
1 changed files with 1 additions and 4 deletions

5
bot.py
View File

@ -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()