From 32cd7211296f81a3f9ecb002852352eb64333ba8 Mon Sep 17 00:00:00 2001 From: khuxkm fbexl Date: Sat, 1 Dec 2018 01:01:29 -0500 Subject: [PATCH] Add a test for subscribers --- bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot.py b/bot.py index cd5c70c..6691d2a 100644 --- a/bot.py +++ b/bot.py @@ -47,6 +47,11 @@ class RadioBot(teambot.Handler): if self.event.source.userhost=="khuxkm@oper.tilde.chat" and cmd=="down": self.tasks.stop() self._bot.die("Stopping...") + elif self.event.source.userhost=="khuxkm@oper.tilde.chat" and cmd=="test": + notify = [self.channels[0]] + notify.extend(self.subscribers) + for channel in notify: + self.say(channel,"'tis but a test. ignore me") elif cmd=="dj": if self.task_state["dj_live"]: self.say(channel,nick+": {} is the current dj!".format(self.task_state["dj"]))