mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 09:10:14 +00:00
Make command matching case-insensitive
This commit is contained in:
parent
77448b815a
commit
6b9bf95b0b
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ async def on_message(message):
|
||||||
|
|
||||||
prefix = "pk;"
|
prefix = "pk;"
|
||||||
for command, (func, _, _, _) in command_items:
|
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_str = message.content[len(prefix + command):].strip()
|
||||||
args = args_str.split(" ")
|
args = args_str.split(" ")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue