I\'m trying to code a simple bot using discord.py so i started with the fun commands like just to get the hang of the api
import discord
import asyncio
clien
If you just want to respond from the on_message callback, you can grab the mention string from the author like so:
@bot.event
async def on_message(message):
# No infinite bot loops
if message.author == bot.user or message.author.bot:
return
mention = message.author.mention
response = f"hey {mention}, you're great!"
await message.channel.send(response)