Fix return values for games

This commit is contained in:
Daniel Odendahl Jr
2017-03-31 11:19:51 +00:00
parent 677a5473a2
commit 6ee9ba4cb2
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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}`);
+1 -1
View File
@@ -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}`);
+1 -1
View File
@@ -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!');
+1 -1
View File
@@ -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>
+1 -1
View File
@@ -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>