diff --git a/commands/search/tiff-and-eve.js b/commands/search/tiff-and-eve.js index 776bc788..8dabad20 100644 --- a/commands/search/tiff-and-eve.js +++ b/commands/search/tiff-and-eve.js @@ -30,7 +30,7 @@ module.exports = class TiffAndEveCommand extends Command { validate: query => { if (types.includes(query.toLowerCase())) return true; const num = Number.parseInt(query, 10); - if (!Number.isNaN(num) && num > 1) return true; + if (!Number.isNaN(num) && num > 0) return true; return `Invalid query, please enter either today, random, or a specific comic number.`; }, parse: query => query.toLowerCase() diff --git a/commands/search/xkcd.js b/commands/search/xkcd.js index e6c58c85..074dd025 100644 --- a/commands/search/xkcd.js +++ b/commands/search/xkcd.js @@ -27,7 +27,7 @@ module.exports = class XKCDCommand extends Command { validate: query => { if (types.includes(query.toLowerCase())) return true; const num = Number.parseInt(query, 10); - if (!Number.isNaN(num) && num > 1) return true; + if (!Number.isNaN(num) && num > 0) return true; return `Invalid query, please enter either today, random, or a specific comic number.`; }, parse: query => query.toLowerCase()