mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 16:51:38 +01:00
increase max leaderboard length to 10
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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)}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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)}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user