Tag: ANNOTATIONS-PROCESSING-MESSAGER
Estoy tratando de crear una clase de mensaje con una configuración configurable como 0 o 1, como se muestra a continuación. 1 Byte, unidad 8 Bit 0: Puerto A, 1 conectado, 0 desconectado Bit 1: Puerto A, 1 conectado, 0 desconectado Bit 2: Puerto A, 1 conectado, 0 desconectado Bit . . . Read more
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
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
Estoy intentando hacer una pregunta de tipo “fuego rápido”. Básicamente, “j” es la variable para los puntos y quiero que cambie/decrezca (y para verificar mensajes) cada 0.5 segundos… El problema es que no importa lo tarde que intente, obtengo 1000 puntos. También soy nuevo. (por cierto, disculpen mi mal inglés) . . . Read more
La autenticación de mensaje (a veces llamada autenticación de origen de datos) es la garantía de que una entidad determinada fue la fuente original de los datos recibidos. La autenticación de entidad (o autenticación de usuario) es la garantía de que una entidad determinada está involucrada y actualmente activa en . . . Read more