asmodee_matrix/mall_handler.py

14 lines
428 B
Python
Raw Normal View History

2024-10-10 17:37:21 +02:00
# coding: utf8
from matrix_bot_api.mhandler import MHandler
class MAllHandler(MHandler):
# command - String of command to handle
# handle_callback - Function to call if message contains command
# cmd_char - Character that denotes a command. '!' by default
def __init__(self, handle_callback):
MHandler.__init__(self, self.test, handle_callback)
def test(self, room, event):
return True