You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
367 B
11 lines
367 B
6 years ago
|
# 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, True, handle_callback)
|