Bug Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-03-31 14:22:56 +00:00
parent f77013e575
commit b0b90d71ae
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -59,9 +59,10 @@ module.exports = class MathGameCommand extends commando.Command {
let collected = await message.channel.awaitMessages(response => response.author.id === message.author.id, {
max: 1,
time: 10000,
errors: ['time'],
errors: ['time']
});
if (collected.first() !== solved.toString()) {
console.log(collected.first());
let loseMsg = await message.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`);
return [embedMsg, loseMsg];
}