This commit is contained in:
Daniel Odendahl Jr
2017-12-28 20:56:26 +00:00
parent 093f5f61e9
commit 92ff1c6137
+1 -1
View File
@@ -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}