mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Fix
This commit is contained in:
@@ -30,7 +30,8 @@ module.exports = class WikihowCommand extends Command {
|
|||||||
prop: 'info',
|
prop: 'info',
|
||||||
format: 'json',
|
format: 'json',
|
||||||
titles: query,
|
titles: query,
|
||||||
inprop: 'url'
|
inprop: 'url',
|
||||||
|
redirects: ''
|
||||||
});
|
});
|
||||||
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.');
|
||||||
|
|||||||
Reference in New Issue
Block a user