Make command matching case-insensitive

This commit is contained in:
Ske 2018-07-14 20:02:10 +02:00
parent 77448b815a
commit 6b9bf95b0b

View File

@ -45,7 +45,7 @@ async def on_message(message):
prefix = "pk;"
for command, (func, _, _, _) in command_items:
if message.content.startswith(prefix + command):
if message.content.lower().startswith(prefix + command):
args_str = message.content[len(prefix + command):].strip()
args = args_str.split(" ")