From 5b099bad22e932c440d644cebd049304d6d5dd0f Mon Sep 17 00:00:00 2001 From: chiefjazzdiewltr Date: Wed, 13 Mar 2024 12:37:35 +1300 Subject: [PATCH 1/2] Fixed the capitalisation issue --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 612815c..05eb4ef 100755 --- a/main.py +++ b/main.py @@ -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] -- 2.39.2 From 4517b17a5004d334711df5d2885fa636ee45353f Mon Sep 17 00:00:00 2001 From: chiefjazzdiewltr Date: Wed, 13 Mar 2024 12:54:53 +1300 Subject: [PATCH 2/2] Removed parenthesis lmao --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 05eb4ef..85163ad 100755 --- a/main.py +++ b/main.py @@ -293,7 +293,7 @@ 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.lower().startswith('nya')) == False: + if message.content.lower().startswith('nya') == False: return # TODO: Do proper parsing of the message -- 2.39.2