Try to make commands case insensitive. Should fix #83
This commit is contained in:
parent
aaf97b4f94
commit
293b44729c
1 changed files with 1 additions and 0 deletions
|
@ -89,6 +89,7 @@ class CommandHandler:
|
||||||
if not evt.content.body or evt.content.body[0] != "!":
|
if not evt.content.body or evt.content.body[0] != "!":
|
||||||
return
|
return
|
||||||
command, remaining_val = _split_in_two(evt.content.body[1:], " ")
|
command, remaining_val = _split_in_two(evt.content.body[1:], " ")
|
||||||
|
command = command.lower()
|
||||||
if not self.__mb_is_command_match__(self.__bound_instance__, command):
|
if not self.__mb_is_command_match__(self.__bound_instance__, command):
|
||||||
return
|
return
|
||||||
call_args: Dict[str, Any] = {**_existing_args} if _existing_args else {}
|
call_args: Dict[str, Any] = {**_existing_args} if _existing_args else {}
|
||||||
|
|
Loading…
Reference in a new issue