Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Add leaderboard command for viewing ranking for user net worth#273

Merged
notsniped merged 5 commits intoPyBotDevs:mainfrom
cyanogus:networth-leaderboard-command
Apr 26, 2023
Merged

Add leaderboard command for viewing ranking for user net worth#273
notsniped merged 5 commits intoPyBotDevs:mainfrom
cyanogus:networth-leaderboard-command

Conversation

@cyanogus
Copy link
Contributor

Net Worth Leaderboard

This command lets you see the global ranking of all the users based on their net worth. This command is copied from the levelling leaderboard command, but some adjustments have been made to it to work with user net worth.

Originally, I would have set the leaderboard to display 10 users' rankings, but I instead set it to 5, as fetching more users' data from the api could hang the bot and the command would have expired by then.

Helping make space for a new leaderboard command.
Renaming the command in the commands database to match the new command name in the leveling cog.
I copied the other leaderboard command for levels ranking and made some changes to it so that it would work with user net worth.
@notsniped notsniped added enhancement New feature or request area:currency framework Any updates, changes, or removals to the currency framework priority:medium type:cogs Any changes to the bot's slash command cogs labels Apr 26, 2023
@notsniped notsniped self-assigned this Apr 26, 2023
@notsniped notsniped merged commit e266d2c into PyBotDevs:main Apr 26, 2023
@cyanogus cyanogus deleted the networth-leaderboard-command branch July 12, 2023 04:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area:currency framework Any updates, changes, or removals to the currency framework enhancement New feature or request priority:medium size/M type:cogs Any changes to the bot's slash command cogs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants