Skip to content

Commit

Permalink
fix(api): wrong data being shown on the leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinPython committed Jul 20, 2024
1 parent 4606ed4 commit f52dd25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ Thanks to @ToastedDev for his contributions to the bot. Here are some changes th
* Added a rankcard to /xp (#17)
* User management (#19)
* Added syncing (#24)
### Patches
#### Beta 0.1.1
* Fixed wrong data being shown on the leaderboard

# Roadmap
* Rewritten site using NextJS
Expand All @@ -56,4 +59,5 @@ Thanks to @ToastedDev for his contributions to the bot. Here are some changes th
* Live updates
* Track guilds and users xp


Want to add more features? Join our server (linked above) and add a post to `feature-requests`
2 changes: 1 addition & 1 deletion api/views/leaderboard.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</h2>
<p class="userXP">XP: <%= user.xp.toLocaleString() %>
</p>
<p class="userXP">Level <%= user.level.toLocaleString() %> | <%= user.xp.toLocaleString() %>/<%= (user.xp + user.xp_needed_next_level).toLocaleString() %> points to next level (<%= user.progress_next_level %>%)
<p class="userXP">Level <%= user.level.toLocaleString() %> | <%= user.xp_needed_next_level.toLocaleString() %>/<%= (user.xp + user.xp_needed_next_level).toLocaleString() %> points to next level (<%= user.progress_next_level %>%)
</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xpbot",
"type": "module",
"version": "0.1.0",
"version": "0.1.1",
"scripts": {
"dev:api": "bun --watch api/index.ts --dev",
"dev:bot": "bun --watch bot/index.ts --dev",
Expand Down

0 comments on commit f52dd25

Please sign in to comment.