'Responce to a certain author / user Python Bot discord

I'm working on a little joke I would like to make a discord bot that every time a friend writes something, the bot sends back a message.

like :

@client.event
async def on_message(message):
  if message.author == @My_friend_discord_name:
    await message.channel.send("Hello")

Thanks in advance

Me



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source