Try to make commands case insensitive. Should fix #83

This commit is contained in:
Tulir Asokan 2020-02-25 22:33:19 +02:00
parent aaf97b4f94
commit 293b44729c

View File

@ -89,6 +89,7 @@ class CommandHandler:
if not evt.content.body or evt.content.body[0] != "!":
return
command, remaining_val = _split_in_two(evt.content.body[1:], " ")
command = command.lower()
if not self.__mb_is_command_match__(self.__bound_instance__, command):
return
call_args: Dict[str, Any] = {**_existing_args} if _existing_args else {}