Fix bot mention prefix response logic
This commit is contained in:
4
main.py
4
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)
|
||||
|
||||
Reference in New Issue
Block a user