Ledger: Dont show users with no points
This commit is contained in:
parent
141628cdef
commit
a720be6ef6
1
index.js
1
index.js
|
@ -266,6 +266,7 @@ client.on("interactionCreate", async interaction => {
|
||||||
let ledger = [];
|
let ledger = [];
|
||||||
for (let i = 0; i < rows.length; i++) {
|
for (let i = 0; i < rows.length; i++) {
|
||||||
let user = await client.users.fetch(rows[i].id);
|
let user = await client.users.fetch(rows[i].id);
|
||||||
|
if (rows[i].points == 0) continue;
|
||||||
ledger.push(`${user.username} - ${rows[i].points}`);
|
ledger.push(`${user.username} - ${rows[i].points}`);
|
||||||
}
|
}
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
|
|
Loading…
Reference in a new issue