Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda