aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-12 22:37:08 +0100
committerGravatar jesopo2019-05-12 22:37:08 +0100
commit8885b407ea6ea6b3592fa5cc3f35fe8a6307ca53 (patch)
tree2297977c69c59b298b6db31adeb5a6dbd2914047 /modules
parentMove all actual nickname changing until AFTER events are fixed. it was actually (diff)
signature
Add !botlist and !rollcall
Diffstat (limited to 'modules')
-rw-r--r--modules/botlist.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/botlist.py b/modules/botlist.py
new file mode 100644
index 00000000..777f9777
--- /dev/null
+++ b/modules/botlist.py
@@ -0,0 +1,10 @@
+from src import ModuleManager, utils
+
+COMMANDS = ["!botlist", "!rollcall"]
+MESSAGE = "Hi! I'm BitBot (https://git.io/bitbot) "
+
+class Module(ModuleManager.BaseModule):
+ @utils.hook("received.message.channel")
+ def channel_message(self, event):
+ if event["message"].strip() in COMMANDS:
+ event["channel"].send_message(MESSAGE)