mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +02:00
Don't track unknown/hidden commands
This commit is contained in:
@@ -34,7 +34,7 @@ module.exports = class CommandLeaderboardCommand extends Command {
|
|||||||
let previousPts = null;
|
let previousPts = null;
|
||||||
let positionsMoved = 1;
|
let positionsMoved = 1;
|
||||||
return this.client.registry.commands
|
return this.client.registry.commands
|
||||||
.filter(command => command.uses !== undefined)
|
.filter(command => command.uses !== undefined && !command.unknown && !command.hidden)
|
||||||
.sort((a, b) => b.uses - a.uses)
|
.sort((a, b) => b.uses - a.uses)
|
||||||
.map(command => {
|
.map(command => {
|
||||||
if (previousPts === command.uses) {
|
if (previousPts === command.uses) {
|
||||||
|
|||||||
Reference in New Issue
Block a user