Skip to content

Commit

Permalink
Some hotfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 24, 2024
1 parent d9e0e53 commit dde98f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "2.0.21"
mikbot = "3.37.5"
mikbot = "3.37.3"
ktor = "2.3.12"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ import dev.schlaubi.mikbot.plugin.api.util.executableEverywhere
import dev.schlaubi.stdx.coroutines.parallelMapNotNull
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.util.*
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
Expand All @@ -30,9 +28,9 @@ private val json = Json {
}

private val client = HttpClient {
install(ContentNegotiation) {
json(json)
}
// install(ContentNegotiation) {
// json(json)
// }
}

@Serializable
Expand Down
4 changes: 4 additions & 0 deletions plugin/src/main/kotlin/space/votebot/core/Plugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class VoteBotPlugin(wrapper: PluginContext) : Plugin(wrapper) {
enable = Config.ENVIRONMENT == Environment.PRODUCTION
}
}
kord {
// Disable non essential intents to keep down processing and traffic
intents(false, false) {}
}
i18n {
applicationCommandLocales.add(Locale.FRENCH)
}
Expand Down

0 comments on commit dde98f9

Please sign in to comment.