client = discord.Client()
noticeme = 'notice me senpai'
@bot.event
async def on_message(message):
author = message.author
authorid = message.author.id
print ("@{} user sent a message. (id: {})".format(author, authorid))
if message.content == noticeme:
print ('I noticed you @{}!'.format(authorid))
await client.send_message(message.channel, 'I noticed you @{}!'.format(authorid))
I'm trying to make a command that responds with "I noticed you @username!" when you say "notice me senpai" but it doesn't work. (the print DOES work)