fix command parsing
This commit is contained in:
parent
dc668c67a0
commit
0afca583b0
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:])
|
||||
|
Loading…
Reference in New Issue
Block a user