diff --git a/src/main/kotlin/org/quiltmc/community/App.kt b/src/main/kotlin/org/quiltmc/community/App.kt index 076b2fc..1547343 100644 --- a/src/main/kotlin/org/quiltmc/community/App.kt +++ b/src/main/kotlin/org/quiltmc/community/App.kt @@ -268,7 +268,6 @@ suspend fun setupLadysnake() = ExtensibleBot(DISCORD_TOKEN) { sentry { distribution = "ladysnake" - dsn = envOrNull("SENTRY_DSN") } } } diff --git a/src/main/kotlin/org/quiltmc/community/_Utils.kt b/src/main/kotlin/org/quiltmc/community/_Utils.kt index c6a609c..864991a 100644 --- a/src/main/kotlin/org/quiltmc/community/_Utils.kt +++ b/src/main/kotlin/org/quiltmc/community/_Utils.kt @@ -190,12 +190,10 @@ suspend fun ExtensibleBotBuilder.common() { } extensions { - sentry { - val sentryDsn = envOrNull("SENTRY_DSN") - - if (sentryDsn != null) { + val sentryDsn = envOrNull("SENTRY_DSN") + if (sentryDsn != null) { + sentry { enable = true - dsn = sentryDsn } }