mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-25 14:44:58 +05:00
Таблица лидеров
This commit is contained in:
parent
37048fc0c8
commit
51fa063332
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ class Leaderboard extends Command {
|
||||||
value: m.money + m.bankSold
|
value: m.money + m.bankSold
|
||||||
};
|
};
|
||||||
}).sort((a,b) => b.value - a.value);
|
}).sort((a,b) => b.value - a.value);
|
||||||
const table = new AsciiTable("LEADERBOARD");
|
const table = new AsciiTable("Таблица лидеров");
|
||||||
table.setHeading("#", message.translate("common:USER"), message.translate("common:CREDITS"));
|
table.setHeading("#", message.translate("common:USER"), message.translate("common:CREDITS"));
|
||||||
if (membersLeaderboard.length > 20) membersLeaderboard.length = 20;
|
if (membersLeaderboard.length > 20) membersLeaderboard.length = 20;
|
||||||
const newTable = await fetchUsers(membersLeaderboard, table, this.client);
|
const newTable = await fetchUsers(membersLeaderboard, table, this.client);
|
||||||
|
@ -44,7 +44,7 @@ class Leaderboard extends Command {
|
||||||
value: m.level
|
value: m.level
|
||||||
};
|
};
|
||||||
}).sort((a,b) => b.value - a.value);
|
}).sort((a,b) => b.value - a.value);
|
||||||
const table = new AsciiTable("LEADERBOARD");
|
const table = new AsciiTable("Таблица лидеров");
|
||||||
table.setHeading("#", message.translate("common:USER"), message.translate("common:LEVEL"));
|
table.setHeading("#", message.translate("common:USER"), message.translate("common:LEVEL"));
|
||||||
if (membersLeaderboard.length > 20) membersLeaderboard.length = 20;
|
if (membersLeaderboard.length > 20) membersLeaderboard.length = 20;
|
||||||
const newTable = await fetchUsers(membersLeaderboard, table, this.client);
|
const newTable = await fetchUsers(membersLeaderboard, table, this.client);
|
||||||
|
@ -57,7 +57,7 @@ class Leaderboard extends Command {
|
||||||
value: u.rep
|
value: u.rep
|
||||||
};
|
};
|
||||||
}).sort((a,b) => b.value - a.value);
|
}).sort((a,b) => b.value - a.value);
|
||||||
const table = new AsciiTable("LEADERBOARD");
|
const table = new AsciiTable("Таблица лидеров");
|
||||||
table.setHeading("#", message.translate("common:USER"), message.translate("common:POINTS"));
|
table.setHeading("#", message.translate("common:USER"), message.translate("common:POINTS"));
|
||||||
if (usersLeaderboard.length > 20) usersLeaderboard.length = 20;
|
if (usersLeaderboard.length > 20) usersLeaderboard.length = 20;
|
||||||
const newTable = await fetchUsers(usersLeaderboard, table, this.client);
|
const newTable = await fetchUsers(usersLeaderboard, table, this.client);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"DESCRIPTION": "Показать аватар пользователя",
|
"DESCRIPTION": "Возвращает аватар пользователя",
|
||||||
"USAGE": "{{prefix}}avatar (@пользователь)",
|
"USAGE": "{{prefix}}avatar (@пользователь)",
|
||||||
"EXAMPLES": "{{prefix}}avatar\n{{prefix}}avatar @Jonny_Bro#4226"
|
"EXAMPLES": "{{prefix}}avatar\n{{prefix}}avatar @Jonny_Bro#4226"
|
||||||
}
|
}
|
Loading…
Reference in a new issue