From acb2ee21c2c8d075c8a60f3ae6eadb184567a4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Wed, 21 Dec 2022 04:26:36 +0100 Subject: [PATCH] Make trivia announce correct answer --- src/main/java/wtf/beatrice/hidekobot/runnables/TriviaTask.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/wtf/beatrice/hidekobot/runnables/TriviaTask.java b/src/main/java/wtf/beatrice/hidekobot/runnables/TriviaTask.java index d833b69..54b1fc6 100644 --- a/src/main/java/wtf/beatrice/hidekobot/runnables/TriviaTask.java +++ b/src/main/java/wtf/beatrice/hidekobot/runnables/TriviaTask.java @@ -52,6 +52,9 @@ public class TriviaTask implements Runnable { // todo: we shouldn't use this method, since it messes with the database... CommandUtil.disableExpired(previousMessage.getId()); + String previousCorrectAnswer = questions.get(iteration-1).correctAnswer(); + previousMessage.reply("The correct answer was: **" + previousCorrectAnswer + "**!").queue(); + // todo: maybe also add who replied correctly as a list } if(iteration >= questions.size())