mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 00:07:36 +02:00
Fix return values for games
This commit is contained in:
@@ -66,7 +66,7 @@ module.exports = class MathGameCommand extends commando.Command {
|
||||
errors: ['time'],
|
||||
});
|
||||
let victoryMsg = await message.say(`Good Job! You won! ${solved} is the correct answer!`);
|
||||
return [embedMsg, collected, victoryMsg];
|
||||
return [embedMsg, victoryMsg];
|
||||
}
|
||||
catch (err) {
|
||||
let loseMsg = await message.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`);
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = class QuizCommand extends commando.Command {
|
||||
errors: ['time']
|
||||
});
|
||||
let victoryMsg = await message.say(`Good Job! You won! ${answer} is the correct answer!`);
|
||||
return [embedMsg, collected, victoryMsg];
|
||||
return [embedMsg, victoryMsg];
|
||||
}
|
||||
catch (err) {
|
||||
let loseMsg = await message.say(`Aw... Too bad, try again next time!\nThe Correct Answer was: ${answer}`);
|
||||
|
||||
@@ -67,7 +67,7 @@ module.exports = class TypingGameCommand extends commando.Command {
|
||||
errors: ['time']
|
||||
});
|
||||
let victoryMsg = await message.say(`Good Job! You won!`);
|
||||
return [embedMsg, collected, victoryMsg];
|
||||
return [embedMsg, victoryMsg];
|
||||
}
|
||||
catch (err) {
|
||||
let loseMsg = await message.say('Aw... Too bad, try again next time!');
|
||||
|
||||
Reference in New Issue
Block a user