This commit is contained in:
Norbi Peti 2016-10-08 17:08:45 +02:00
parent 01edb18649
commit ac851a845b

View file

@ -119,7 +119,8 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
File file = new File("TBMC", "DiscordRedditLastAnnouncement.txt"); File file = new File("TBMC", "DiscordRedditLastAnnouncement.txt");
Files.write(lastannouncementtime + "", file, StandardCharsets.UTF_8); Files.write(lastannouncementtime + "", file, StandardCharsets.UTF_8);
} }
channel.sendMessage(msgsb.toString()); // TODO: Mod msgsb for announcements if (msgsb.length() > 0)
channel.sendMessage(msgsb.toString()); // TODO: Mod msgsb for announcements
try { try {
Thread.sleep(10000); Thread.sleep(10000);
} catch (InterruptedException ex) { } catch (InterruptedException ex) {