-
-
Notifications
You must be signed in to change notification settings - Fork 260
Global Leaderboard #1730
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
Open
ammaralzeno
wants to merge
35
commits into
python-discord:main
Choose a base branch
from
ammaralzeno:feat/global-leaderboard
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Global Leaderboard #1730
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
10551a9
Add: Global leaderboard core infrastructure (#627)
ammaralzeno 3c3a410
Integrate games to update leaderboard and normalize points for each g…
xrrayy 727d1e5
Fix: missing space issues in messages
ammaralzeno 72f7ac1
Add: remaining games to update global leaderboard on win
ammaralzeno d884d43
Fix: a more fair point system
ammaralzeno 36fb837
Fix: correct github content link for duck coin
ammaralzeno 5eaf692
Fix: trailing-whitespace
ammaralzeno d0e99d2
Fix: ruff check errors
ammaralzeno 1042d08
Fix: add_points to return actual earned points
ammaralzeno 493339a
Fix: pre-commit & ruff check errors
ammaralzeno 11326e8
Fix: handle ties & optimize get_user_rank
ammaralzeno 8114a47
Update bot/exts/fun/snakes/_snakes_cog.py
ammaralzeno f490396
Update bot/exts/fun/connect_four.py
ammaralzeno 77b3d00
Update bot/utils/leaderboard.py
ammaralzeno 30afb24
Add: operator import
ammaralzeno ac2254c
Add: module-level game name constant
ammaralzeno a632876
Fix: change 'winners' from list to tuple
norawennerstrom 101965a
refactor: duck game scoring
remmare 8a4ac27
Fix: call 'increment' directly without checking that cache contains u…
norawennerstrom da6c010
refactor: remove redundant award_points check in snakes
remmare 554d380
Refactor: "me"-command
d2e1747
Refactor: easter_riddle winner variable cleanup
ead4028
Fix: replace "global pts" with "pts" in end_game()
606951b
Fix:replace "global pts" with "pts" in quiz_game()
e07b181
Fix: move points_cache from cog to global variable in bot.utils.leade…
norawennerstrom 1ab15ef
Merge remote-tracking branch 'origin/dev-anna' into feat/global-leade…
ammaralzeno 4a5ac29
Merge pull request #2 from ammaralzeno/dev-nora
ammaralzeno 33df0e5
Merge branch 'dev-amanda' into feat/global-leaderboard
ammaralzeno 474ef43
Fix: 6 as default value in minesweeper
ammaralzeno ab88deb
Merge branch 'main' into feat/global-leaderboard
ammaralzeno 6d9c58e
Update bot/exts/fun/connect_four.py
ammaralzeno dd585fa
Update bot/utils/leaderboard.py
ammaralzeno 68a9b7b
Add: cog_unload to reset POINTS_CACHE
ammaralzeno 91ee6af
Remove: unnecessary get_user_points() call
ammaralzeno 8673c43
Fix: AttributeError if winner is None
ammaralzeno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.