Update Leaderboard list format

This commit is contained in:
baz 2024-02-28 18:12:04 +00:00
parent adff39b758
commit b8c5919be1
1 changed files with 5 additions and 1 deletions

View File

@ -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);