You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add metrics for which emoji is used how often.
Why
Emoji slots are limited, especially if we do not have that many boosts. Each time someone suggests to add new emojis we face the question "which emojis to replace for that?". So far the admins guessed which emojis might never be used but we can improve that with metrics.
How
Emoji usage consists of:
emojis used in messages
emojis used for reactions
Add some EmojiTrackerListener class, make it a MessageListener. Now the bot receives an update for every message. For listening to reactions it might be necessary to use ListenerAdapter? Mayber our codebase already has examples for reactions, fulltext search "reaction" should probably give some results then.
Figure out the name of the emoji, for example :peepo_yes: should be tracked as peepo_yes and then do metrics.count("emoji-peepo_yes") with the existing Metrics class. For the default unicode emojis like 👍 it might be okay to use the unicode representation directly, but the canoncial name, e.g. thumbs_up, would work as well.
We might also want to split normal emojis from animated emojis (since they share a different slot pool), so if possible metrics.count("emoji_animated-foo"), but that part is not as important.
Activity
barsh404error commentedon Mar 23, 2026
will take this one :)