This commit is contained in:
dragonfire535
2017-03-14 09:33:03 -04:00
parent 1f33af24ac
commit 17586a4e25
+1 -1
View File
@@ -42,7 +42,7 @@ class MathGameCommand extends commando.Command {
let randomValue2 = Math.floor(Math.random() * randomValue) + 1;
let randomExpression = randomValue1 + randomType + randomValue2;
let solved = math.eval(randomExpression);
if(time === undefined) {
if(randomValue === undefined) {
message.channel.sendMessage(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
} else {
const embed = new Discord.RichEmbed()