Fix botop hostmast
This commit is contained in:
parent
32cd721129
commit
da1532de67
4
bot.py
4
bot.py
|
@ -44,10 +44,10 @@ class RadioBot(teambot.Handler):
|
||||||
print(self.event.source.userhost)
|
print(self.event.source.userhost)
|
||||||
if text.startswith(self._bot.bot_nick+": "):
|
if text.startswith(self._bot.bot_nick+": "):
|
||||||
cmd = text[len(self._bot.bot_nick+": "):].strip()
|
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.tasks.stop()
|
||||||
self._bot.die("Stopping...")
|
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 = [self.channels[0]]
|
||||||
notify.extend(self.subscribers)
|
notify.extend(self.subscribers)
|
||||||
for channel in notify:
|
for channel in notify:
|
||||||
|
|
Loading…
Reference in New Issue