From f4d086401c248eca753bcc15b13b87b205c02f0c Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 10 Apr 2017 20:36:24 +0000 Subject: [PATCH] Fix in Info Again --- commands/botinfo/info.js | 2 +- commands/botinfo/invite.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/botinfo/info.js b/commands/botinfo/info.js index 3d78fcf2..c222712d 100644 --- a/commands/botinfo/info.js +++ b/commands/botinfo/info.js @@ -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)'); diff --git a/commands/botinfo/invite.js b/commands/botinfo/invite.js index cf56ddde..beb3b0e4 100644 --- a/commands/botinfo/invite.js +++ b/commands/botinfo/invite.js @@ -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'] }); }