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

Codeycoin leaderboard #263

Merged
merged 8 commits into from
Aug 7, 2022
Merged

Codeycoin leaderboard #263

merged 8 commits into from
Aug 7, 2022

Conversation

mcpenguin
Copy link
Collaborator

Summary of Changes

Added a leaderboard for the top 10 CodeyCoin holders.

Steps to Reproduce

Run .coin leaderboard or /coin leaderboard.

Screenshots

The embed is the same regardless whether you use regular or slash commands.

image

@mcpenguin mcpenguin linked an issue Aug 6, 2022 that may be closed by this pull request
Copy link
Collaborator

@Picowchew Picowchew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think that bots should be able to have Codey coins, and therefore bots should definitely not appear on the leaderboard. While this change might seem to be out of scope of this PR, I think it would be nice to include this change since the leaderboard is client-facing.

Also, it looks like there are some linter warnings.

src/commandDetails/coin/leaderboard.ts Outdated Show resolved Hide resolved
src/commandDetails/coin/leaderboard.ts Outdated Show resolved Hide resolved
src/commandDetails/coin/leaderboard.ts Outdated Show resolved Hide resolved
src/commandDetails/coin/leaderboard.ts Outdated Show resolved Hide resolved
src/components/coin.ts Show resolved Hide resolved
@marko-polo-cheno
Copy link
Collaborator

marko-polo-cheno commented Aug 6, 2022

while u are here
change coin image into codey coin emoji
WAIT JK, i remember i said to make this a first issue for next term team, don't change it for now

Copy link
Collaborator

@Picowchew Picowchew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With regard to my previous comment about bots, I made a new issue, #265.

src/commandDetails/coin/leaderboard.ts Outdated Show resolved Hide resolved
src/commandDetails/coin/leaderboard.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@marko-polo-cheno marko-polo-cheno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high demand feature :) tyty
made some tiny notes

src/components/coin.ts Outdated Show resolved Hide resolved
src/components/coin.ts Outdated Show resolved Hide resolved
src/components/coin.ts Outdated Show resolved Hide resolved
@@ -61,6 +61,11 @@ export const coinBonusMap = new Map<BonusType, Bonus>([
]
]);

export interface UserCoinEntry {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't ctrl f on phone but can u just lmk where this is used XD

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the leaderboard :))

src/commandDetails/coin/leaderboard.ts Outdated Show resolved Hide resolved
src/components/coin.ts Outdated Show resolved Hide resolved
@mcpenguin mcpenguin merged commit 0d19db3 into master Aug 7, 2022
@mcpenguin mcpenguin deleted the 195-codeycoin-leaderboard branch August 7, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Codeycoin leaderboard
3 participants