From a119e84a4289b0f9d9e0f35f2ecc4f9719851370 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 29 Jul 2021 15:41:19 -0600 Subject: [PATCH] lb now displays 10 --- 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 2c34498..09c26ec 100644 --- a/commands/leveling/leaderboard.js +++ b/commands/leveling/leaderboard.js @@ -21,7 +21,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]}.*`;