From 95b38a39ddbec16388d60d2e31272629f56698cd Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Tue, 22 Feb 2022 20:41:46 +0100 Subject: [PATCH] troubleshooting --- src/main/java/linux/general/hackyquizbot/QuizHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/linux/general/hackyquizbot/QuizHandler.java b/src/main/java/linux/general/hackyquizbot/QuizHandler.java index b248d75..ff585c5 100644 --- a/src/main/java/linux/general/hackyquizbot/QuizHandler.java +++ b/src/main/java/linux/general/hackyquizbot/QuizHandler.java @@ -25,7 +25,11 @@ public class QuizHandler { + "Select the :white_check_mark: reaction to continue.").get(); message.addReaction(EmojiParser.parseToUnicode(":white_check_mark:")); message.addReactionAddListener(event -> { - System.err.println("Got an event from "+Long.toString(event.getUser().get().getId())); + System.err.println("We get to here. #1"); + User test = event.getUser().get(); //test to see if this throws an exception + System.err.println("We get to here. #2"); + System.err.println("Got an event from "+Long.toString(event.getUser().get().getId())); //this throws an exception - why? + System.err.println("We get to here. #3"); if (event.getUser().get().getId()!=Main.getUserID() && event.getReaction().get().getEmoji().equalsEmoji(EmojiParser.parseToUnicode(":white_check_mark:"))) { event.getMessage().get().getChannel().sendMessage("test"); //TODO: trigger question dispatch