I want my discord bot to reply to a message that contains a mention to the bot. Ive tried multiple ways, and currently im using
@bot.event
async def on_message(message):
mention = f'<@!{bot.user.id}>'
if mention in message.content:
await ctx.reply("You mentioned me")
but it isnt working. Can anyone help me?