I am trying to make an interactive game with a bot. If you haven't heard of it, it is called high low. A random number 0-100 is chosen. Another random number is chosen. You are shown the second. You have to guess if the first number is higher, lower, or equal to the second. I want to make three reactions. One is an up arrow, one is down, one is an equal sign. How can I execute 3 unique functions when this happens?
(note that the bot will post a message that needs to have a reaction on it. The bot will react with the three emojis first, so these can not accidentally run the code. Thank you.)
Without seeing your code, I would implement a new Reaction event listener. In that reaction event listener I would check to see if the id of the reactor was equal to the id of the bot. If it was, do nothing. Else loop through reaction functions and execute the proper function