Make trivia announce correct answer
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c02cc8c7df
commit
acb2ee21c2
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user