Hi everyone ! I'm new here and looking for help on my discord bot.
I'm working since 2 months on a discord bot to help managing my discord server (a discord for civilization VI players).
I have a command $mapvote that send some messages on the current channel and add reactions to help peoples to vote for the map settings for their games (see screenshot 1 under this post).
I want to make a new version of this command, the idea would be to detect the result of the votes and edit the message to show the result of the vote.
For example, if there are 7 players in the game, and the Pangaea reaction (๐) has been select 4 times, the MAP message is edited to display "Pangaea ๐ ".
I know it's probably not so hard to make, but I'm kinda new in coding. Does anyone has an idea ?
My main problem is tracking the reactions and use them for logic operations.
You can find the code on this GitHub Repository : https://github.com/Matezzi777/Civ-Private-Bot
Thanks !