From b33a4c02cc62c4ae5d1558ce48441b77dd9059bc Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Sat, 7 Sep 2024 11:27:07 +0100 Subject: [PATCH] trivia: include the correct answer if the user answers wrong or time's up --- commands/fun/trivia.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/fun/trivia.js b/commands/fun/trivia.js index 0784078..90975e1 100644 --- a/commands/fun/trivia.js +++ b/commands/fun/trivia.js @@ -154,7 +154,7 @@ const handleAnswerCollection = async ( let resultMessage = userAnswer === correctAnswer ? "Correct!" - : "Incorrect! Better luck next time."; + : `Incorrect! the correct answer is **${correctAnswer}.**`; let userScore = await Leaderboard.findOne({ userId }); if (!userScore) { @@ -190,7 +190,7 @@ const handleAnswerCollection = async ( answerCollector.on("end", (collected, reason) => { if (reason === "time") { interaction.followUp( - `<@${userId}> Time's up! You didn't answer in time.` + `<@${userId}> Time's up! the correct answer is **${correctAnswer}.**` ); ONGOING_TRIVIA.delete(userId); }