mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Finish removing "Oh no, an error occurred"
This commit is contained in:
@@ -20,11 +20,7 @@ module.exports = class LizardCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
try {
|
||||
const { body } = await request.get('https://nekos.life/api/v2/img/lizard');
|
||||
return msg.say({ files: [body.url] });
|
||||
} catch (err) {
|
||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||
}
|
||||
const { body } = await request.get('https://nekos.life/api/v2/img/lizard');
|
||||
return msg.say({ files: [body.url] });
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user