Hide users with no beat games from the leaderboard
This commit is contained in:
parent
4bdc193feb
commit
537f5dab07
|
@ -16,6 +16,7 @@ module.exports = {
|
||||||
|
|
||||||
for (let i = 0; i < leaderboard.length; i++) {
|
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('#', (i + 1), ' \t', leaderboard[i].username, ' - ', leaderboard[i].count, ' games');
|
||||||
|
|
||||||
if (i == 0) newLine = String.prototype.concat('**', newLine, '**');
|
if (i == 0) newLine = String.prototype.concat('**', newLine, '**');
|
||||||
|
@ -26,6 +27,7 @@ module.exports = {
|
||||||
|
|
||||||
desc = String.prototype.concat(desc, newLine);
|
desc = String.prototype.concat(desc, newLine);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(0x6441a5)
|
.setColor(0x6441a5)
|
||||||
|
|
Loading…
Reference in New Issue