Fix in Info Again

This commit is contained in:
Daniel Odendahl Jr
2017-04-10 20:36:24 +00:00
parent 7132427aca
commit f4d086401c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = class InfoCommand extends commando.Command {
}
let shardID = args.shardID + 1 || this.client.shardID + 1;
shardID = shardID - 1;
if (shardID > this.client.options.shardCount + 1 || shardID < 0) {
if (!shardID || shardID > this.client.options.shardCount + 1 || shardID < 0) {
return message.say(':x: Error! Invalid Shard!');
}
const memory = await this.client.shard.broadcastEval('Math.round(process.memoryUsage().heapUsed / 1024 / 1024)');
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = class InviteCommand extends commando.Command {
name: 'invite',
group: 'botinfo',
memberName: 'invite',
description: 'Sends you an invite for the bot, or an invite to my server, Heroes of Dreamland. (;invite)',
description: 'Sends you an invite for the bot and an invite to my server. (;invite)',
examples: [';invite']
});
}