Clarification on counting multiple upvote/downvote emojis

When you configure the bot to look for multiple upvote/downvote emojis, how does the bot count the number of upvotes/downvotes e.g. - Sum of all upvote emojis minus sum of all downvote emojis - Max of the upvote emojis minus max of the downvote emojis - Something else
4 Replies
circuitsacul
circuitsacul3w ago
It takes every reaction and (in essence) finds the most recent tracked emoji per person. Then it's sum(upvote) - sum(downvote) phrased that wrong, edited lol So a person can't have an upvote & downvote, or multiple of either, on a message at once
NaviKing
NaviKingOP3w ago
Ok, so let's say my upvote emojis are 👍 ⭐ and 🔥 Person 1 reacts with 👍 , ⭐ Person 2 reacts with ⭐ , 🔥 Person 3 reacts with 🔥 , 👍 So the reaction counts are - 2 👍 - 2 ⭐ - 2 🔥 And - Person 1's tracked emoji is ⭐ - Person 2's tracked emoji is 🔥 - Person 3's tracked emoji is 👍 So - The message will show 2 reactions on each emoji - The upvote count will be 3
circuitsacul
circuitsacul3w ago
Essentially. It's not tracked that way internally. The bot doesn't know what emojis are actually on the message, it just keeps track of (user, message, vote) where vote can either be 1 or -1, and it's unique by (user, message)
So - The message will show 2 reactions on each emoji - The upvote count will be 3
But this is correct
NaviKing
NaviKingOP3w ago
Ok cool, that's clear enough for me, thanks!

Did you find this page helpful?