Fix bot mention prefix response logic

This commit is contained in:
Choco
2025-08-23 22:36:26 +08:00
parent 15ed5b2edd
commit 24cd6caefa

View File

@@ -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)