mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-18 13:56:25 +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 randomValue2 = Math.floor(Math.random() * randomValue) + 1;
|
||||||
let randomExpression = randomValue1 + randomType + randomValue2;
|
let randomExpression = randomValue1 + randomType + randomValue2;
|
||||||
let solved = math.eval(randomExpression);
|
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)');
|
message.channel.sendMessage(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
|
||||||
} else {
|
} else {
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.RichEmbed()
|
||||||
|
|||||||
Reference in New Issue
Block a user