troubleshooting

master
BodgeMaster 2022-02-22 20:41:46 +01:00
parent 41c7dc2831
commit 95b38a39dd
1 changed files with 5 additions and 1 deletions

View File

@ -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