mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
More Formatting Woot
This commit is contained in:
@@ -40,7 +40,7 @@ module.exports = class MathGameCommand extends commando.Command {
|
||||
let randomValue2 = Math.floor(Math.random() * randomValue) + 1;
|
||||
let randomExpression = randomValue1 + randomType + randomValue2;
|
||||
let solved = math.eval(randomExpression);
|
||||
if (randomValue === undefined) {
|
||||
if (!randomValue) {
|
||||
message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -31,7 +31,7 @@ module.exports = class SoundBoardCommand extends commando.Command {
|
||||
return message.channel.send(`:x: Error! Please be in a voice channel first!`);
|
||||
}
|
||||
let soundToPlay = message.content.toLowerCase().split(" ").slice(1).join(" ");
|
||||
if (soundToPlay === "") {
|
||||
if (!soundToPlay) {
|
||||
message.channel.send(':x: Error! No sound set. Please use ;soundboard list to see a list of sounds you can play.');
|
||||
}
|
||||
else if (soundToPlay === 'list') {
|
||||
|
||||
@@ -50,7 +50,7 @@ module.exports = class TypingGameCommand extends commando.Command {
|
||||
levelWord = "ten";
|
||||
break;
|
||||
}
|
||||
if (time === undefined) {
|
||||
if (!time) {
|
||||
message.channel.send(':x: Error! No difficulty set! (Choose Easy, Medium, Hard, or Extreme)');
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user