troubleshooting
parent
41c7dc2831
commit
95b38a39dd
|
@ -25,7 +25,11 @@ public class QuizHandler {
|
||||||
+ "Select the :white_check_mark: reaction to continue.").get();
|
+ "Select the :white_check_mark: reaction to continue.").get();
|
||||||
message.addReaction(EmojiParser.parseToUnicode(":white_check_mark:"));
|
message.addReaction(EmojiParser.parseToUnicode(":white_check_mark:"));
|
||||||
message.addReactionAddListener(event -> {
|
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:"))) {
|
if (event.getUser().get().getId()!=Main.getUserID() && event.getReaction().get().getEmoji().equalsEmoji(EmojiParser.parseToUnicode(":white_check_mark:"))) {
|
||||||
event.getMessage().get().getChannel().sendMessage("test");
|
event.getMessage().get().getChannel().sendMessage("test");
|
||||||
//TODO: trigger question dispatch
|
//TODO: trigger question dispatch
|
||||||
|
|
Loading…
Reference in New Issue