Shard Info Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-05-07 17:40:57 +00:00
parent 52e299b1b4
commit 87bc1e31e1
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ module.exports = class XiaoCommand extends Command {
'xiao'
],
group: 'randomimg',
memberName: 'xiaopai',
memberName: 'xiao-pai',
description: 'Sends a random image of Xiao Pai.'
});
}
+4 -1
View File
@@ -19,7 +19,10 @@ module.exports = class ShardInfoCommand extends Command {
prompt: 'Which Shard would you like to get data for?',
type: 'integer',
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';
}
}