From 71b4461e539a231e763ff61399daabfeab79c05e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 10 Apr 2017 20:42:13 +0000 Subject: [PATCH] Fix Finally? --- commands/botinfo/info.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/botinfo/info.js b/commands/botinfo/info.js index 53d7c505..6d3b9406 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 > 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)');