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