From b094ba882c91a4ff6d2ec6d88a681417c820e373 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 18 Dec 2021 20:34:30 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B2=D0=BE=D0=B5=20=D0=BC?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=BE,=20=D0=B0=20=D0=BD=D0=B5=20=D0=BD?= =?UTF-8?q?=D1=83=D0=BB=D0=B5=D0=B2=D0=BE=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Economy/leaderboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/Economy/leaderboard.js b/commands/Economy/leaderboard.js index 9b8d691a..96a8dfab 100644 --- a/commands/Economy/leaderboard.js +++ b/commands/Economy/leaderboard.js @@ -27,7 +27,7 @@ class Leaderboard extends Command { const members = await this.client.membersData.find({ guildID: message.guild.id }).lean(), membersLeaderboard = members.map((m) => { return { - id: m.id, + id: m.id + 1, value: m.money + m.bankSold }; }).sort((a,b) => b.value - a.value); @@ -40,7 +40,7 @@ class Leaderboard extends Command { const members = await this.client.membersData.find({ guildID: message.guild.id }).lean(), membersLeaderboard = members.map((m) => { return { - id: m.id, + id: m.id + 1, value: m.level }; }).sort((a,b) => b.value - a.value); @@ -53,7 +53,7 @@ class Leaderboard extends Command { const users = await this.client.usersData.find().lean(), usersLeaderboard = users.map((u) => { return { - id: u.id, + id: u.id + 1, value: u.rep }; }).sort((a,b) => b.value - a.value);