Fix botop hostmast

This commit is contained in:
Robert Miles 2018-12-01 01:02:00 -05:00
parent 32cd721129
commit da1532de67
1 changed files with 2 additions and 2 deletions

4
bot.py
View File

@ -44,10 +44,10 @@ class RadioBot(teambot.Handler):
print(self.event.source.userhost)
if text.startswith(self._bot.bot_nick+": "):
cmd = text[len(self._bot.bot_nick+": "):].strip()
if self.event.source.userhost=="khuxkm@oper.tilde.chat" and cmd=="down":
if self.event.source.userhost=="khuxkm@sudoers.tilde.team" and cmd=="down":
self.tasks.stop()
self._bot.die("Stopping...")
elif self.event.source.userhost=="khuxkm@oper.tilde.chat" and cmd=="test":
elif self.event.source.userhost=="khuxkm@sudoers.tilde.team" and cmd=="test":
notify = [self.channels[0]]
notify.extend(self.subscribers)
for channel in notify: