blob: 777f9777e0837a60a566984e5cacc492f9767e5b (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
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)
|