increase max leaderboard length to 10

This commit is contained in:
2025-09-20 23:59:46 +02:00
parent 79d1d537f7
commit 86b2a30f5f
3 changed files with 4 additions and 4 deletions

View File

@@ -47,8 +47,8 @@ Try to bargain for your release with the chatter that shot you, or just call the
### Leaderboards ### Leaderboards
There are 3 types of leaderboards: monthlyKD, alltimeKD and qbucks. There are 3 types of leaderboards: monthlyKD, alltimeKD and qbucks.
- The monthlyKD leaderboard (command: `monthlyleaderboard`) gives you the leaderboard of the top 5 user Kill/Death ratios for the current month. - The monthlyKD leaderboard (command: `monthlyleaderboard`) gives you the leaderboard of the top 10 user Kill/Death ratios for the current month.
- The alltimeKD leaderboard (command: `alltimeleaderboard`) gives you the leaderboard of the top 5 user Kill/Death ratios of all time in the channel. - The alltimeKD leaderboard (command: `alltimeleaderboard`) gives you the leaderboard of the top 10 user Kill/Death ratios of all time in the channel.
- The qbucks leaderboard (command: `qbucksleaderboard`) gives you the current leaderboard of the top 10 qbucks havers. - The qbucks leaderboard (command: `qbucksleaderboard`) gives you the current leaderboard of the top 10 qbucks havers.
To appear on the KD leaderboards you need to have been timed out 5 times, in the specified timeframe. To appear on the KD leaderboards you need to have been timed out 5 times, in the specified timeframe.

View File

@@ -25,7 +25,7 @@ export default new Command({
userKDs.sort((a, b) => b.kd - a.kd); userKDs.sort((a, b) => b.kd - a.kd);
const txt: string[] = []; const txt: string[] = [];
for (let i = 0; i < (userKDs.length < 5 ? userKDs.length : 5); i++) { for (let i = 0; i < (userKDs.length < 10 ? userKDs.length : 10); i++) {
txt.push(`${i + 1}. ${userKDs[i]?.user.displayName}: ${userKDs[i]?.kd.toFixed(2)}`); txt.push(`${i + 1}. ${userKDs[i]?.user.displayName}: ${userKDs[i]?.kd.toFixed(2)}`);
}; };

View File

@@ -27,7 +27,7 @@ export default new Command({
userKDs.sort((a, b) => b.kd - a.kd); userKDs.sort((a, b) => b.kd - a.kd);
const txt: string[] = []; const txt: string[] = [];
for (let i = 0; i < (userKDs.length < 5 ? userKDs.length : 5); i++) { for (let i = 0; i < (userKDs.length < 10 ? userKDs.length : 10); i++) {
txt.push(`${i + 1}. ${userKDs[i]?.user.displayName}: ${userKDs[i]?.kd.toFixed(2)}`); txt.push(`${i + 1}. ${userKDs[i]?.user.displayName}: ${userKDs[i]?.kd.toFixed(2)}`);
}; };