Finish removing "Oh no, an error occurred"

This commit is contained in:
Dragon Fire
2024-03-30 11:59:42 -04:00
parent f6b59c2d46
commit a135cac031
119 changed files with 3418 additions and 4116 deletions
+2 -6
View File
@@ -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] });
}
};