From 0584b59185f88949ad2e3f7ba71088584e7ffa5c Mon Sep 17 00:00:00 2001 From: Toom Date: Thu, 28 Nov 2024 23:00:38 +0200 Subject: [PATCH] Reveal correct trivia answer in the end Currently there is no feedback which answer was correct, so it is not possible to learn from mistakes. --- src/backend/games/builtin/trivia/trivia-command.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/games/builtin/trivia/trivia-command.js b/src/backend/games/builtin/trivia/trivia-command.js index 8fba1d159..1d8b9e2c9 100644 --- a/src/backend/games/builtin/trivia/trivia-command.js +++ b/src/backend/games/builtin/trivia/trivia-command.js @@ -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(); }); @@ -285,4 +285,4 @@ function purgeCaches() { exports.purgeCaches = purgeCaches; exports.registerTriviaCommand = registerTriviaCommand; -exports.unregisterTriviaCommand = unregisterTriviaCommand; \ No newline at end of file +exports.unregisterTriviaCommand = unregisterTriviaCommand;