Added some debug code, testing them now

This commit is contained in:
Norbi Peti 2016-12-22 21:40:09 +01:00
parent 74fe66ec7d
commit c3cc559b61

View file

@ -16,6 +16,11 @@ public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
System.out.println("No embed"); System.out.println("No embed");
return; return;
} }
System.out.println(event.getMessage().getEmbedded().get(0).getDescription()); final String title = event.getMessage().getEmbedded().get(0).getTitle();
System.out.println(title);
System.out.println(title.indexOf(':'));
System.out.println(title.indexOf(']'));
System.out.println(title.substring(title.indexOf(':') + 1, title.indexOf(']')));
System.out.println(title.contains("new commit"));
} }
} }