diff --git a/main.py b/main.py index 3835011..c052640 100644 --- a/main.py +++ b/main.py @@ -209,13 +209,11 @@ async def on_message(message: discord.Message) -> None: if message.guild is None: return - # Check if the message is a command + # Check if the message starts with the command prefix (exactly one !) if message.content.startswith("!."): - # Strip the leading "!" and process + # Strip ONLY the first "!" character (not all of them) content = message.content[1:] - # Remove the leading "!" again since we stripped one - content = content.lstrip("!") - # FIX: Await process_commands to actually process the command + # Now process the command await bot.process_commands(message)