Added check for Discord system during setup.
This commit is contained in:
parent
acf06c78ed
commit
2772d85603
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user