Who's that Pokemon text improvement

This commit is contained in:
Dragon Fire
2020-10-29 13:18:36 -04:00
parent 16ef131614
commit 7739a6218f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -73,13 +73,13 @@ module.exports = class WhosThatPokemonCommand extends Command {
max: 1,
time: 15000
});
if (!msgs.size) return msg.reply(`Sorry, time is up! It was ${data.name}.`, { files: [answerAttachment] });
if (!msgs.size) return msg.reply(`Time! It's **${data.name}**!`, { files: [answerAttachment] });
const guess = msgs.first().content.toLowerCase();
const slug = this.client.pokemon.makeSlug(guess);
if (!names.includes(guess) && data.slug !== slug) {
return msg.reply(`Nope, sorry, it's ${data.name}.`, { files: [answerAttachment] });
return msg.reply(`Nope! It's **${data.name}**!`, { files: [answerAttachment] });
}
return msg.reply('Nice job! 10/10! You deserve some cake!', { files: [answerAttachment] });
return msg.reply(`Nice! It's **${data.name}**!`, { files: [answerAttachment] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "119.34.6",
"version": "119.34.7",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {