Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
Doing something if a user reacts to a message Discord.js

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.)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!