es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: ANNOTATIONS-PROCESSING-MESSAGER

Cómo responder a un mensaje enviado por el propio bot

Quiero que el bot responda a su mensaje de ayuda diciendo “este mensaje está ahora inactivo”. Aquí está el código: mm = await message.send(embed=embed1) await mm.add_reaction(“1️⃣”) await mm.add_reaction(“2️⃣”) await mm.add_reaction(“3️⃣”) try: while True: reaction, user = await bot.wait_for(“reaction_add”, check=check, timeout=10) if str(reaction.emoji) == “1️⃣”: await mm.edit(embed=embed1) elif str(reaction.emoji) == “2️⃣”: . . . Read more

Cómo hacer que el bot espere por 2 reacciones.

Quiero que mi bot de Discord.py espere 2 reacciones… El código: def check(reaction, user): return user == message.author and str(reaction.emoji) == ‘1️⃣’ def check(reaction, user): return user == message.author and str(reaction.emoji) == ‘2️⃣’ mm = await message.send(embed=embed1) await mm.add_reaction(“1️⃣”) await mm.add_reaction(“2️⃣”) reaction, user = await bot.wait_for(“reaction_add”, check=check, timeout=180) reaction, user . . . Read more