mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Bug fix
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class WikihowCommand extends Command {
|
|||||||
inprop: 'url'
|
inprop: 'url'
|
||||||
});
|
});
|
||||||
const data = body.query.pages[Object.keys(body.query.pages)[0]];
|
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`
|
return msg.say(stripIndents`
|
||||||
How to ${data.title}
|
How to ${data.title}
|
||||||
${data.fullurl}
|
${data.fullurl}
|
||||||
|
|||||||
Reference in New Issue
Block a user