mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix Danbooru
This commit is contained in:
@@ -33,7 +33,7 @@ module.exports = class DanbooruCommand extends Command {
|
|||||||
limit: 1
|
limit: 1
|
||||||
});
|
});
|
||||||
if (!body.length) throw new Error('No Results.');
|
if (!body.length) throw new Error('No Results.');
|
||||||
return msg.say(query ? `Result for ${query}:` : 'Random Image:', { files: [`https://danbooru.domai.us${body[0].file_url}`] })
|
return msg.say(query ? `Result for ${query}:` : 'Random Image:', { files: [`https://danbooru.donmai.us${body[0].file_url}`] })
|
||||||
.catch(err => msg.say(`${err.name}: ${err.message}`));
|
.catch(err => msg.say(`${err.name}: ${err.message}`));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`${err.name}: ${err.message}`);
|
return msg.say(`${err.name}: ${err.message}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user