Skip to content

Commit

Permalink
Enable logging for guild check after bot initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed Aug 17, 2024
1 parent 9b9e668 commit 705dc33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/rettichlp/shantybot/ShantyBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,9 @@ private static void startDiscordBot() throws InterruptedException {
).queue());

audioPlayerManager = new AudioPlayerManager();

ofNullable(discordBotProperties.getGuild())
.ifPresentOrElse(guild -> log.info("Discord bot connected to the guild requested by the properties: {}", guild.getName()),
() -> log.error("Discord bot cannot create connection to guild requested by the properties"));
}
}

0 comments on commit 705dc33

Please sign in to comment.