From e0421885bff97e547df816299c0bf93a0f8c1a7e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 5 Jun 2017 18:36:56 +0000 Subject: [PATCH] Oops --- commands/search/xkcd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/xkcd.js b/commands/search/xkcd.js index 9048631f..88ed9a2c 100644 --- a/commands/search/xkcd.js +++ b/commands/search/xkcd.js @@ -45,7 +45,7 @@ module.exports = class XKCDCommand extends Command { return msg.embed(embed); } else { const choice = parseInt(type, 10); - if (isNaN(choice) || current.body.num < choice || choice < 0) return msg.say('Invalid Number'); + if (isNaN(choice) || current.body.num < choice || choice < 1) return msg.say('Invalid Number.'); const { body } = await snekfetch .get(`https://xkcd.com/${choice}/info.0.json`); const embed = new RichEmbed()