Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite emoji stats #322

Open
stepech opened this issue Apr 7, 2022 · 0 comments
Open

Rewrite emoji stats #322

stepech opened this issue Apr 7, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@stepech
Copy link
Contributor

stepech commented Apr 7, 2022

At the moment, emojis are saved the moment they are used as reaction, and they are never deleted. Additionaly, all stats are displayed from the time the emoji was first used, making some stats about short-lived but viral emojis misleading. Like the situation with :okayge: which was used 215000x leading to usage per day as high as 500, even though this trend is long dead.

Proposed changes:

  • don't add emotes first time they are used. Keep the database synced with guild. Listen to emoji add and removal events and update/delete corresponding entries. Additionaly full emoji list could be synced the moment bot starts up - potentially expensive, but just once in a while.
  • Introduce some way to limit lifetime of no longer used emojis. Save stats just for some period
    • like dropping entries older than 1yr
    • substracting 10% of total emoji used count at the end of every month - that would target mainly emojis that have numbers way above their real usage, meanwhile used emojis would easily overcome this number
    • etc.
  • More variety to emoji commands? If we modify it in a way that supports recognizing when were which emojis incremented, we can have separate stats for year/month/day. Additionaly if we include this as a slash command and make responses ephemeral for normal users/public for mods, we can make this command available to everyone (In case spam is the reason it is not done yet). Seems like a frequently requested feature.
@stepech stepech added the enhancement New feature or request label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant