From 24cd6caefa0d497c05c4244f09f80aba8a830453 Mon Sep 17 00:00:00 2001 From: Choco Date: Sat, 23 Aug 2025 22:36:26 +0800 Subject: [PATCH] Fix bot mention prefix response logic --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 2b6710d..33d6ac5 100644 --- a/main.py +++ b/main.py @@ -70,11 +70,11 @@ class Vocard(commands.Bot): return False # Check if the bot is directly mentioned - if self.user.id in message.raw_mentions and not message.mention_everyone: + if message.content.strip() == self.user.mention and not message.mention_everyone: prefix = await self.command_prefix(self, message) if not prefix: return await message.channel.send("I don't have a bot prefix set.") - await message.channel.send(f"My prefix is `{prefix}`") + return await message.channel.send(f"My prefix is `{prefix}`") # Fetch guild settings and check if the mesage is in the music request channel settings = await func.get_settings(message.guild.id)