Added if
This commit is contained in:
parent
01edb18649
commit
ac851a845b
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
|
|||
File file = new File("TBMC", "DiscordRedditLastAnnouncement.txt");
|
||||
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 {
|
||||
Thread.sleep(10000);
|
||||
} catch (InterruptedException ex) {
|
||||
|
|
Loading…
Reference in a new issue