bitbot-3.11-fork/modules/botlist.py

11 lines
350 B
Python
Raw Normal View History

2019-05-12 21:37:08 +00:00
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)