File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
plugin/src/main/kotlin/space/votebot/core Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import dev.kord.core.event.gateway.ReadyEvent
7
7
import dev.schlaubi.mikbot.plugin.api.Plugin
8
8
import dev.schlaubi.mikbot.plugin.api.PluginContext
9
9
import dev.schlaubi.mikbot.plugin.api.PluginMain
10
+ import dev.schlaubi.mikbot.plugin.api.config.Config
11
+ import dev.schlaubi.mikbot.plugin.api.config.Environment
10
12
import kotlinx.coroutines.cancel
11
13
import kotlinx.serialization.builtins.serializer
12
14
import org.litote.kmongo.serialization.registerSerializer
@@ -22,6 +24,15 @@ class VoteBotPlugin(wrapper: PluginContext) : Plugin(wrapper) {
22
24
add(::VoteBotModule )
23
25
}
24
26
27
+ override suspend fun ExtensibleBotBuilder.apply () {
28
+ extensions {
29
+ sentry {
30
+ dsn = Config .SENTRY_TOKEN
31
+ enable = Config .ENVIRONMENT == Environment .PRODUCTION
32
+ }
33
+ }
34
+ }
35
+
25
36
override fun stop () {
26
37
ExpirationScope .cancel()
27
38
}
You can’t perform that action at this time.
0 commit comments