Add extra formatting for the leaderboard

This commit is contained in:
baz 2023-12-27 21:33:27 +00:00
parent c039f3e2e4
commit 7de1d065dd
1 changed files with 10 additions and 3 deletions

View File

@ -15,9 +15,16 @@ module.exports = {
let desc = '';
for (let i = 0; i < leaderboard.length; i++) {
let newLine = '';
newLine = newLine.concat((i + 1), '. \t', leaderboard[i].username, ' - ', leaderboard[i].count, ' games\n');
desc = desc.concat(newLine);
let newLine = String.prototype.concat('#', (i + 1), ' \t', leaderboard[i].username, ' - ', leaderboard[i].count, ' games');
if (i == 0) newLine = String.prototype.concat('**', newLine, '**');
if (leaderboard[i].username == interaction.user.username) newLine = String.prototype.concat('*', newLine, '*');
newLine = String.prototype.concat('\n', newLine);
desc = String.prototype.concat(desc, newLine);
}
const embed = new EmbedBuilder()