diff --git a/commands/random/mathgame.js b/commands/random/mathgame.js index 685022be..37648913 100644 --- a/commands/random/mathgame.js +++ b/commands/random/mathgame.js @@ -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()