mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix lint
This commit is contained in:
@@ -25,10 +25,8 @@ module.exports = class GroupLeaderboardCommand extends Command {
|
|||||||
|
|
||||||
run(msg, { page }) {
|
run(msg, { page }) {
|
||||||
const groups = this.client.registry.groups.map(group => {
|
const groups = this.client.registry.groups.map(group => {
|
||||||
return {
|
const uses = group.commands.reduce((a, b) => a + (b.uses || 0), 0);
|
||||||
uses: group.commands.reduce((a, b) => a + (b.uses || 0), 0),
|
return { uses, group };
|
||||||
group
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
const totalPages = Math.ceil(this.client.registry.groups.size / 10);
|
const totalPages = Math.ceil(this.client.registry.groups.size / 10);
|
||||||
if (page > totalPages) return msg.say(`Page ${page} does not exist (yet).`);
|
if (page > totalPages) return msg.say(`Page ${page} does not exist (yet).`);
|
||||||
|
|||||||
Reference in New Issue
Block a user