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