-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: add scoreboard for coubeh #117
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Peïo Thibault <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Peïo Thibault <[email protected]>
Co-authored-by: Yanzi-dev <[email protected]> Co-authored-by: Manuel <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Peïo Thibault <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
I can't test with multiples account discord, so i don't know if all my features works perfectly or not.. |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
src/core/cache.ts
Outdated
@@ -25,6 +25,7 @@ interface CacheEntries { | |||
onDemandChannels: string[]; | |||
quoiFeurChannels: string[]; | |||
recurringMessages: { id: string; channelId: string; frequency: Frequency; message: string }[]; | |||
score: { id: string; username: string; score: number }[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's useless to store the username
because it can change at any time. But you need to store the guild id.
Also, you can store score for coubeh
and score for feur
PS: name the key scoreQuoiFeur
or something more specific
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey ! Thank for review, working on it 👯♂️
Head branch was pushed to by a user without write access
c69e2ce
to
a754471
Compare
@Alexandre-Chs do we keep that opened ? |
The functionality add a scoreboard of all users who have been coubeh.
See the scoreboard : /quoi-feur scoreboard
The scoreboard only displays the top 3 users who have been coubeh.