Fix hangman definition being empty

This commit is contained in:
Dragon Fire
2020-05-01 10:06:07 -04:00
parent 0414ccc845
commit c32ec50860
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -90,15 +90,15 @@ module.exports = class HangmanCommand extends Command {
return msg.say(stripIndents`
You won, it was ${word}!
**${defined.name}** (${defined.partOfSpeech})
${defined.definiton}
${defined ? `**${defined.name}** (${defined.partOfSpeech})` : ''}
${defined ? defined.definiton : ''}
`);
}
return msg.say(stripIndents`
Too bad... It was ${word}...
**${defined.name}** (${defined.partOfSpeech})
${defined.definiton}
${defined ? `**${defined.name}** (${defined.partOfSpeech})` : ''}
${defined ? defined.definiton : ''}
`);
} catch (err) {
this.client.games.delete(msg.channel.id);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "114.0.0",
"version": "114.0.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {