Minor Code Improvements

This commit is contained in:
Daniel Odendahl Jr
2017-05-03 01:03:59 +00:00
parent b18241f7bc
commit 74fa836044
16 changed files with 96 additions and 29 deletions
+8 -2
View File
@@ -63,10 +63,16 @@ module.exports = class MathGameCommand extends Command {
errors: ['time']
});
if (collected.first().content !== solved)
return msg.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`);
return msg.say(
`Aw... Too bad, try again next time!
The correct answer is: ${solved}`
);
return msg.say(`Good Job! You won! ${solved} is the correct answer!`);
} catch (err) {
return msg.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`);
return msg.say(
`Aw... Too bad, try again next time!
The correct answer is: ${solved}`
);
}
}
};