1import discord
2
3@client.event
4async def on_message(message):
5 response = await message.channel.send("Hello")
6 # Deletes the message the user sent
7 await message.delete()
8 # Deletes the responding message
9 await response.delete()