I am trying to figure out what I am missing in the on_reaction_add(message)
function to have the bot send a message when a user reacts to another player's message.
@client.listen()
async def on_message(message):
"""
Looks for when a member calls 'bhwagon', and after 24 minutes, sends them a message
:param message: the message sent by the user
:return: a DM to the user letting them know their cooldown ended
"""
if message.content.startswith("bhwagon") or message.content.startswith("missed wagon"):
await cool_down_ended(message)
await on_reaction_add(message)
@client.event
async def on_reaction_add(message):
"""
Checks to see if there is a reaction on a message, and if there is, then send that user a message
:param message: represents the context in which a command is being invoked under
:return:
"""
if message.emoji == '882814250710626405': # If a certain reaction is used on a message
await message.author.send("message")