Skip to content

Add Emoji Metrics #1445

Closed

Description

@Zabuzard

What

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

  1. added theissue type on Mar 23, 2026
  2. barsh404error commented on Mar 23, 2026

    @barsh404error
    Member

    will take this one :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementpriority: normal

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions