mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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!');
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<h2>Information</h2>
|
||||
<ul>
|
||||
<li><a href="https://discord.gg/fqQF8mc">Home Server</a></li>
|
||||
<li>Command Count: 114</li>
|
||||
<li>Command Count: 115</li>
|
||||
<li>Server Host: <a href="https://www.heroku.com/">Heroku</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<h2>Information</h2>
|
||||
<ul>
|
||||
<li><a href="https://discord.gg/fqQF8mc">Home Server</a></li>
|
||||
<li>Command Count: 114</li>
|
||||
<li>Command Count: 115</li>
|
||||
<li>Server Host: <a href="https://www.heroku.com/">Heroku</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user