mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Shard Info Fixes
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = class XiaoCommand extends Command {
|
|||||||
'xiao'
|
'xiao'
|
||||||
],
|
],
|
||||||
group: 'randomimg',
|
group: 'randomimg',
|
||||||
memberName: 'xiaopai',
|
memberName: 'xiao-pai',
|
||||||
description: 'Sends a random image of Xiao Pai.'
|
description: 'Sends a random image of Xiao Pai.'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,10 @@ module.exports = class ShardInfoCommand extends Command {
|
|||||||
prompt: 'Which Shard would you like to get data for?',
|
prompt: 'Which Shard would you like to get data for?',
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
validate: shard => {
|
validate: shard => {
|
||||||
if(shard < this.client.options.shardCount || shard > -1) return true;
|
if(shard < this.client.options.shardCount || shard > -1) {
|
||||||
|
console.log(shard, this.client.options.shardCount);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return 'Invalid Shard ID';
|
return 'Invalid Shard ID';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user