Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 11 mins ago.
I wanted to make a bot that basically waits until a user reacts with a green button, then checks whether they reacted with 3 other emojis or not. I already put together this code, but I don t know where to go from here or what to do in on_raw_reaction_add.
digit1 = random.choice(0,2)
if digit1 == 0:
digit1 = "0️⃣"
if digit1 == 1:
digit1 = "1️⃣"
if digit1 == 2:
digit1 = "2️⃣"
digit2 = random.choice(3,5)
if digit2 == 3:
digit2 = "3️⃣"
if digit2 == 4:
digit2 = "4️⃣"
if digit2 == 5:
digit2 = "5️⃣"
digit3 = random.choice(6,8)
if digit3 == 6:
digit3 = "6️⃣"
if digit3 == 7:
digit3 = "7️⃣"
if digit3 == 8:
digit3 = "8️⃣"
digit4 = random.choice(9,10)
if digit4 == 9:
digit4 = "9️⃣"
if digit4 == 10:
digit4 = "?"
buttonmsg = await FFB_channel.send(f"**Code Button:** {digit1+digit2+digit3+digit4}<:purplebutton:1123299506633576539>", delete_after=FFB_codedeletetime)
For example, the bot would send a message with 12 reactions: The number emojis from 0-10 and a green button emoji. The message content will contain 4 random digits from 0-10 (which I can script myself). The user must react to those 4 digits, then react to the green button to confirm their code. If they get the digits correct, the bot will send them a message. If they get it incorrect, the bot will do nothing. I don t really know where to start with this so how do I do it?