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

faction submission channels #97

Open
4 tasks
WilsontheWolf opened this issue Nov 4, 2021 · 2 comments
Open
4 tasks

faction submission channels #97

WilsontheWolf opened this issue Nov 4, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@WilsontheWolf
Copy link
Member

Faction submission channels have custom xp and logic

  • Add up and down vote emojis on message
  • Xp is calculated differently in these channels (please reference old bot)
  • Give xp on up and down vote
  • Prevent double xp
    • That is when a user removes an arrow to prevent them from adding it back for more xp
    • The old bot just coolsdown the user's arrow for 1000 seconds but I don't like that
    • We could store a memoy copy of everyone who gave a submission xp and then don't allow duplicates.
    • We could also maybe remove xp on removal so they just add and remove it again.
    • @JWIGGS it would be nice to see you chime in here.
@WilsontheWolf WilsontheWolf mentioned this issue Nov 4, 2021
@WilsontheWolf WilsontheWolf added enhancement New feature or request good first issue Good for newcomers labels Nov 4, 2021
@WilsontheWolf WilsontheWolf added this to the 1.1 milestone Nov 4, 2021
@KommentatorForAll
Copy link
Member

KommentatorForAll commented Nov 11, 2021

We could store a memoy copy of everyone who gave a submission xp and then don't allow duplicates.

This would explode our database within 2 or 3 challenges.
I'd say we use the last option you listed (removing xp) i mean, we are build to be able to handle it.

@WilsontheWolf
Copy link
Member Author

WilsontheWolf commented Nov 11, 2021

This would explode our database within 2 or 3 challenges.
I'd say we use the last option you listed (removing xp) i mean, we are build to be able to handle it.

One I said memory only copy.
Plus its not really that big of a deal. Assuming 50 people react to 10 messages and we store the id of the message and user in the format 517371142508380170-908391523148775464 in a set thats 37 bytes per enterie. 37 * 50 * 10 = 18500 bytes or 18.5 kilobytes. even if we went crazy with 100 people and 50 messages thats 185 Kilobytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants