Add !botlist and !rollcall
This commit is contained in:
parent
d0573706e5
commit
8885b407ea
1 changed files with 10 additions and 0 deletions
10
modules/botlist.py
Normal file
10
modules/botlist.py
Normal file
|
@ -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)
|
Loading…
Reference in a new issue