Added check for Discord system during setup.

This commit is contained in:
DroppingAnvil 2019-12-26 15:25:47 -06:00 committed by droppinganvil
parent acf06c78ed
commit 2772d85603
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ public class Discord {
}
private static Boolean startBot() {
if (!Conf.useDiscordSystem) {return false;}
try {
jda = new JDABuilder(AccountType.BOT).setToken(Conf.discordBotToken).buildBlocking();
} catch (LoginException | InterruptedException e) {