mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
increase max leaderboard length to 10
This commit is contained in:
@@ -25,7 +25,7 @@ export default new Command({
|
||||
userKDs.sort((a, b) => b.kd - a.kd);
|
||||
|
||||
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)}`);
|
||||
};
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ export default new Command({
|
||||
userKDs.sort((a, b) => b.kd - a.kd);
|
||||
|
||||
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)}`);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user