From 92ff1c6137ea6c8a3a7b2dd879d9f523720f9839 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 28 Dec 2017 20:56:26 +0000 Subject: [PATCH] Bug fix --- commands/search/wikihow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/wikihow.js b/commands/search/wikihow.js index 91d2a30b..e0ae1754 100644 --- a/commands/search/wikihow.js +++ b/commands/search/wikihow.js @@ -33,7 +33,7 @@ module.exports = class WikihowCommand extends Command { inprop: 'url' }); const data = body.query.pages[Object.keys(body.query.pages)[0]]; - if (data.missing) return msg.say('Could not find any results.'); + if (!data.missing) return msg.say('Could not find any results.'); return msg.say(stripIndents` How to ${data.title} ${data.fullurl}