vivinano / MudaeAutoBot

python bot that uses strictly the **Discord API** to Roll,Claim,and Kakera Snipe in Mudae. 5/10/21 project converted over to discum library
Apache License 2.0
151 stars 49 forks source link

Problem with reacting to an image with embeded buttons #279

Closed WatameBytes closed 2 months ago

WatameBytes commented 2 months ago

For example, it did react to image It was wished by the botted user and rolled by them, so you can't say snipe protection prevented it.

As you can see, it didn't claim them. One temporarily solution I found was by using $perstogglereact to remove the embeds when I roll, otherwise reacting won't claim them. I said temporarly solution, cause if someone else wished for that character, it will have those buttons attached, preventing me from even claiming when I roll themed and allowing someone else to snipe them.

Wondering if this is normal, did I mess up somewhere? I did increase the sleep time in the code, but seems like if it has a heart embed attached to it, it can't claim it. Wondering if there is a work around to this.

To recreate this problem, lower the "min_kak":5, to lets say 5 and type $togglereact 2, since most server have button embeds enabled for all rolls and also how you can recreate this problem.

Additional context

2024-09-09 05:04:45,285:Wished Cecilia Immergreen from hololive with 37 Value in Server id:<REDACTED>
Our user rolled in <REDACTED>
2024-09-09 05:04:47,677:Sniping time waited Reaction was added
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
Our user rolled in <REDACTED>
2024-09-09 05:05:14,579:Fandead from hololive appeared attempting to snipe in <REDACTED>

image

vivinano commented 2 months ago

So it doesn't react to buttons at all ?

WatameBytes commented 2 months ago

Nope, it does not react to buttons at all. It just tries to react to it with an emoji instead and of course that fails to claim.