From 6ee9ba4cb25dfe08d1be07d6cdc858b48aaf31a7 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Fri, 31 Mar 2017 11:19:51 +0000 Subject: [PATCH] Fix return values for games --- commands/games/mathgame.js | 2 +- commands/games/quiz.js | 2 +- commands/games/typinggame.js | 2 +- html/carbondesc.html | 2 +- html/discordbots.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/games/mathgame.js b/commands/games/mathgame.js index 3c208fc9..8315791d 100644 --- a/commands/games/mathgame.js +++ b/commands/games/mathgame.js @@ -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}`); diff --git a/commands/games/quiz.js b/commands/games/quiz.js index 69ea714d..dcb97110 100644 --- a/commands/games/quiz.js +++ b/commands/games/quiz.js @@ -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}`); diff --git a/commands/games/typinggame.js b/commands/games/typinggame.js index 6fae8bd5..659e40aa 100644 --- a/commands/games/typinggame.js +++ b/commands/games/typinggame.js @@ -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!'); diff --git a/html/carbondesc.html b/html/carbondesc.html index 35859b6d..3eb2b75e 100644 --- a/html/carbondesc.html +++ b/html/carbondesc.html @@ -56,7 +56,7 @@

Information

diff --git a/html/discordbots.html b/html/discordbots.html index 200cfe7e..2c7d5fee 100644 --- a/html/discordbots.html +++ b/html/discordbots.html @@ -105,7 +105,7 @@

Information