fix command parsing

This commit is contained in:
xeals 2023-04-26 17:03:46 +10:00
parent dc668c67a0
commit 0afca583b0
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C

2
bot.py
View File

@ -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:])