Skip to content

Commit

Permalink
Add warn message when webhook URL not set
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed May 28, 2024
1 parent 9c924a8 commit 3f6f1a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/src/main/kotlin/dev/erdragh/astralbot/Bot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ fun startAstralbot(server: MinecraftServer) {
return
}

if (AstralBotConfig.WEBHOOK_ENABLED.get() && AstralBotConfig.WEBHOOK_URL.get() == "") {
LOGGER.warn("Webhooks enabled, but no URL provided, chat synchronization will fallback to default implementation.")
}

minecraftHandler = MinecraftHandler(server)

jda = JDABuilder.createLight(
Expand Down

0 comments on commit 3f6f1a4

Please sign in to comment.