Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/views/leaderboard.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<h2 class="userName" title="@<%= user.user_name %>">
<%= user.user_nickname %>
</h2>
<p class="userXP">XP: <%= user.xp %>
<p class="userXP">XP: <%= user.xp.toLocaleString() %>
</p>
<p class="userXP">Level <%= user.user_level %> | <%= user.xp %>/<%= user.xp + user.user_xp_needed_next_level %> points to next level (<%= user.user_progress_next_level %>%)
<p class="userXP">Level <%= user.user_level.toLocaleString() %> | <%= user.xp.toLocaleString() %>/<%= (user.xp + user.user_xp_needed_next_level).toLocaleString() %> points to next level (<%= user.user_progress_next_level %>%)
</p>
</div>
</div>
Expand All @@ -41,4 +41,4 @@
</main>
</body>

</html>
</html>
8 changes: 4 additions & 4 deletions bot/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const commands: Record<string, Command> = {
{
color: 'Blurple',
title: 'XP',
description: `<@${user}> you have ${xp.xp} XP! (Level ${convertToLevels(xp.xp)})`,
description: `<@${user}> you have ${xp.xp.toLocaleString("en-US")} XP! (Level ${convertToLevels(xp.xp).toLocaleString("en-US")})`,
},
interaction
).addFields([
Expand All @@ -162,7 +162,7 @@ const commands: Record<string, Command> = {
},
{
name: 'XP Required',
value: `${xp.user_xp_needed_next_level} XP`,
value: `${xp.user_xp_needed_next_level.toLocaleString("en-US")} XP`,
inline: true,
},
]),
Expand Down Expand Up @@ -209,7 +209,7 @@ const commands: Record<string, Command> = {
leaderboardEmbed.addFields([
{
name: `${index + 1}.`,
value: `<@${entry.user_id}>: ${entry.xp} XP`,
value: `<@${entry.user_id}>: ${entry.xp.toLocaleString("en-US")} XP`,
inline: false
}
]);
Expand Down Expand Up @@ -442,4 +442,4 @@ for (const key in commands) {
}
}

export default commandsMap;
export default commandsMap;