From b5160522d1cd997b0e0808bdd4a4665264479fb5 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 29 Jul 2021 15:40:59 -0600 Subject: [PATCH] display 10 people on lb --- commands/leveling/leaderboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/leveling/leaderboard.js b/commands/leveling/leaderboard.js index 37da13a..cbf7f3a 100644 --- a/commands/leveling/leaderboard.js +++ b/commands/leveling/leaderboard.js @@ -20,7 +20,7 @@ module.exports = { let xp = gxp.xp; let lvlp = Object.keys(xp).sort((a, b) => {return xp[a][1] - xp[b][1];}).reverse(); - let lvl = lvlp.slice(0, Object.keys(xp).length >= 5 ? 5 : Object.keys(xp).length); + let lvl = lvlp.slice(0, Object.keys(xp).length >= 10 ? 10 : Object.keys(xp).length); let lvls = ``; let i; for (i=0; i -> **Level ${xp[lvl[i]][1]}**\n`;} lvls += `\n${cfmh} *You are ranked **#${lvlp.indexOf(message.author.id) + 1}** at Level ${xp[lvlp[lvlp.indexOf(message.author.id)]][1]}.*`;