This commit is contained in:
Daniel Odendahl Jr
2017-10-09 12:39:35 +00:00
parent c1ea014fec
commit bf19c9e398
3 changed files with 15 additions and 19 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ module.exports = class MathGameCommand extends Command {
time: 10000
});
if (!msgs.size) return msg.say(`Time! It was ${answer}, sorry!`);
if (msgs.first().content !== answer) return msg.say(`Nope, sorry, it's ${answer}.`);
if (msgs.first().content !== answer.toString()) return msg.say(`Nope, sorry, it's ${answer}.`);
return msg.say('Nice job! 10/10! You deserve some cake!');
}
};