This commit is contained in:
Daniel Odendahl Jr
2019-04-13 16:17:29 +00:00
parent b27ba1c597
commit 2f0210ac46
+1
View File
@@ -41,6 +41,7 @@ module.exports = class FaceCommand extends Command {
${beautyScore > 50 ? beautyScore > 70 ? beautyScore > 90 ? 'Hot!' : 'Not bad.' : 'Not _too_ ugly.' : 'Uggggly!'}
`);
} catch (err) {
if (err.status === 403) return msg.reply('Hold your horses! The command is overloaded! Try again soon.');
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
}