diff --git a/commands/games/mathgame.js b/commands/games/mathgame.js index fa82b0d3..b1c66d49 100644 --- a/commands/games/mathgame.js +++ b/commands/games/mathgame.js @@ -61,8 +61,7 @@ module.exports = class MathGameCommand extends commando.Command { time: 10000, errors: ['time'] }); - if (collected.first() !== solved.toString()) { - console.log(collected.first()); + if (collected.first().content !== solved.toString()) { let loseMsg = await message.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`); return [embedMsg, loseMsg]; } diff --git a/commands/games/quiz.js b/commands/games/quiz.js index df0f26b5..09f0abf6 100644 --- a/commands/games/quiz.js +++ b/commands/games/quiz.js @@ -38,8 +38,7 @@ module.exports = class QuizCommand extends commando.Command { time: 15000, errors: ['time'] }); - if (collected.first().toLowerCase() !== answer) { - console.log(collected.first()); + if (collected.first().content.toLowerCase() !== answer) { let loseMsg = await message.say(`The correct answer is: ${answer}`); return [embedMsg, loseMsg]; } diff --git a/commands/games/typinggame.js b/commands/games/typinggame.js index d5fa3fd2..c5e7cb56 100644 --- a/commands/games/typinggame.js +++ b/commands/games/typinggame.js @@ -61,7 +61,7 @@ module.exports = class TypingGameCommand extends commando.Command { time: time, errors: ['time'] }); - if (collected.first() !== randomSentence) { + if (collected.first().content !== randomSentence) { console.log(collected.first()); let loseMsg = await message.say('Nope, your sentence does not match the original. Try again next time!'); return [embedMsg, loseMsg];