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

Update reactions handler #23

Open
eruizdechavez opened this issue Nov 22, 2020 · 1 comment
Open

Update reactions handler #23

eruizdechavez opened this issue Nov 22, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@eruizdechavez
Copy link
Contributor

eruizdechavez commented Nov 22, 2020

Positive reactions (πŸ‘πŸ», πŸ‘πŸ», βœ‹πŸ», πŸ™‹πŸ»β€β™‚οΈ, πŸ™‹πŸ»β€β™€οΈ, πŸ™‹πŸ») ( βž• )

If a user adds any of the positive reactions to a message with one or more point changes (++, --) the bot will repeat the action in the message as if the user adding the reaction had written the same message.

Negative reactions (πŸ‘ŽπŸ», πŸ™ƒ) ( βž– )

If a user adds any of the negative reactions to message with one or more point changes (++, --) the bot will repeat the action in the message as if the user adding the reaction had written the same message, BUT the points will be inverted (that is, all ++ become --, and -- become ++).

Inappropriate reactions (πŸ–•πŸ»)

If a user adds any of the inappropriate reactions to a message, the user will be penalized with -100 points for inappropriate behavior.

Removing reactions

If a user decides to remove one of the above reactions, the bot must effectively undo the changes done when the reaction was added by the user (with the exception of the inappropriate reactions).

@eruizdechavez eruizdechavez added enhancement New feature or request help wanted Extra attention is needed labels Nov 22, 2020
@eruizdechavez eruizdechavez added this to the v1.0.0 milestone Nov 22, 2020
@eruizdechavez eruizdechavez removed this from the v1.0.0 milestone Jan 7, 2021
@eruizdechavez eruizdechavez self-assigned this Feb 15, 2021
@eruizdechavez
Copy link
Contributor Author

In the end, I decided to keep things simpler and only handle βž• and βž– for ++ and -- reactions. This avoids having to check if the same user is adding multiple reactions hence, multiple votes.

@eruizdechavez eruizdechavez assigned javleds and unassigned javleds Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants