Merge pull request 'Fixed the capitalisation issue' (#2) from chiefjazzdiewltr/nyabot:master into master

Reviewed-on: kemonomimi/nyabot#2
This commit is contained in:
Sugaryy_ 2024-03-16 10:03:49 +00:00
commit 39b9641f11

View file

@ -293,11 +293,11 @@ async def on_message(message: discord.Message):
# Should prevent the bot from being accidentally triggered from now on. Also will make
# the people here have to say nya more often which is always a bonus.
if message.content.startswith('nya') == False:
if message.content.lower().startswith('nya') == False:
return
# TODO: Do proper parsing of the message
message_as_command = message.content.split("nya ")
message_as_command = message.content.lower().split("nya ")
message_as_command = message_as_command[1].split(" ")
command = message_as_command[0]