mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Bug
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user