Skip to content

Commit

Permalink
Reveal correct trivia answer in the end
Browse files Browse the repository at this point in the history
Currently there is no feedback which answer was correct, so it is not possible to learn from mistakes.
  • Loading branch information
ProditorMagnus authored Nov 28, 2024
1 parent 2321e27 commit 65217c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/games/builtin/trivia/trivia-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ twitchListeners.events.on("chat-message", async (data) => {

await twitchChat.sendChatMessage(`${chatMessage.userDisplayName ?? username}, that is correct! You have won ${util.commafy(winnings)} ${currency.name}`, null, chatter);
} else {
await twitchChat.sendChatMessage(`Sorry ${chatMessage.userDisplayName ?? username}, that is incorrect. Better luck next time!`, null, chatter);
await twitchChat.sendChatMessage(`Sorry ${chatMessage.userDisplayName ?? username}, that is incorrect. The answer was ${question.correctIndex}. Better luck next time!`, null, chatter);
}
clearCurrentQuestion();
});
Expand Down Expand Up @@ -285,4 +285,4 @@ function purgeCaches() {

exports.purgeCaches = purgeCaches;
exports.registerTriviaCommand = registerTriviaCommand;
exports.unregisterTriviaCommand = unregisterTriviaCommand;
exports.unregisterTriviaCommand = unregisterTriviaCommand;

0 comments on commit 65217c0

Please sign in to comment.