fix command parsing
This commit is contained in:
2
bot.py
2
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:])
|
||||
|
Reference in New Issue
Block a user