From 0afca583b0c234222638a57f8a9459de1d7fb47e Mon Sep 17 00:00:00 2001 From: xeals Date: Wed, 26 Apr 2023 17:03:46 +1000 Subject: [PATCH] fix command parsing --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 08e11d8..ca198ea 100755 --- a/bot.py +++ b/bot.py @@ -72,7 +72,7 @@ class BotClient(discord.Client): return message.content.startswith("%") async def on_command(self, message: discord.Message): - command = discord.message.split(" ")[0] + command = message.content.split(" ")[0] match command: case "%calc": reply = await _calculate(command[1:])