mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +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'],
|
errors: ['time'],
|
||||||
});
|
});
|
||||||
let victoryMsg = await message.say(`Good Job! You won! ${solved} is the correct answer!`);
|
let victoryMsg = await message.say(`Good Job! You won! ${solved} is the correct answer!`);
|
||||||
return [embedMsg, collected, victoryMsg];
|
return [embedMsg, victoryMsg];
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
let loseMsg = await message.say(`Aw... Too bad, try again next time!\nThe correct answer is: ${solved}`);
|
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']
|
errors: ['time']
|
||||||
});
|
});
|
||||||
let victoryMsg = await message.say(`Good Job! You won! ${answer} is the correct answer!`);
|
let victoryMsg = await message.say(`Good Job! You won! ${answer} is the correct answer!`);
|
||||||
return [embedMsg, collected, victoryMsg];
|
return [embedMsg, victoryMsg];
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
let loseMsg = await message.say(`Aw... Too bad, try again next time!\nThe Correct Answer was: ${answer}`);
|
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']
|
errors: ['time']
|
||||||
});
|
});
|
||||||
let victoryMsg = await message.say(`Good Job! You won!`);
|
let victoryMsg = await message.say(`Good Job! You won!`);
|
||||||
return [embedMsg, collected, victoryMsg];
|
return [embedMsg, victoryMsg];
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
let loseMsg = await message.say('Aw... Too bad, try again next time!');
|
let loseMsg = await message.say('Aw... Too bad, try again next time!');
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<h2>Information</h2>
|
<h2>Information</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://discord.gg/fqQF8mc">Home Server</a></li>
|
<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>
|
<li>Server Host: <a href="https://www.heroku.com/">Heroku</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
<h2>Information</h2>
|
<h2>Information</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://discord.gg/fqQF8mc">Home Server</a></li>
|
<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>
|
<li>Server Host: <a href="https://www.heroku.com/">Heroku</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user