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

Make birthday messages randomization less repetitive #89

Open
Phanabani opened this issue Sep 14, 2022 · 0 comments
Open

Make birthday messages randomization less repetitive #89

Phanabani opened this issue Sep 14, 2022 · 0 comments
Assignees
Labels
internal An internal change that users shouldn't be aware of minor feature A small new feature

Comments

@Phanabani
Copy link
Owner

I don't want a birthday message to repeat soon after it had been used. Here's how I will implement this:

  • A queue of the previous X number of messages will be stored in the database
  • Upon birthday message drawing, the messages in the database queue will be removed from the pool of drawable messages
  • After drawing a message, it will be pushed to the queue so it cannot be drawn again for X number of draws
@Phanabani Phanabani added minor feature A small new feature internal An internal change that users shouldn't be aware of labels Sep 14, 2022
@Phanabani Phanabani self-assigned this Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal change that users shouldn't be aware of minor feature A small new feature
Development

No branches or pull requests

1 participant