From b8c5919be1955973ec47e41917b11ce9f5cc751e Mon Sep 17 00:00:00 2001 From: baz Date: Wed, 28 Feb 2024 18:12:04 +0000 Subject: [PATCH] Update Leaderboard list format --- commands/100-games/leaderboard.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/100-games/leaderboard.js b/commands/100-games/leaderboard.js index eb9035f..66c2070 100644 --- a/commands/100-games/leaderboard.js +++ b/commands/100-games/leaderboard.js @@ -17,12 +17,16 @@ module.exports = { for (let i = 0; i < leaderboard.length; i++) { if (leaderboard[i].count > 0) { - let newLine = String.prototype.concat('#', (i + 1), ' \t', leaderboard[i].username, ' - ', leaderboard[i].count, ' games'); + let newLine = String.prototype.concat(leaderboard[i].username, ' - ', leaderboard[i].count, ' games'); + + const number = String.prototype.concat('**#', (i + 1), '** '); if (i == 0) newLine = String.prototype.concat('**', newLine, '**'); if (leaderboard[i].username == interaction.user.username) newLine = String.prototype.concat('*', newLine, '*'); + newLine = String.prototype.concat(number, newLine); + newLine = String.prototype.concat('\n', newLine); desc = String.prototype.concat(desc, newLine);