Skip to content

Commit

Permalink
Use last pod to update commands
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 24, 2024
1 parent 7aefa15 commit c936845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class KubernetesPlugin(context: PluginContext) : Plugin(context) {
sharding { calculateShards() }
}
applicationCommands {
register = Config.POD_ID == (Config.SHARDS_PER_POD)
register = Config.POD_ID == (Config.TOTAL_SHARDS / Config.SHARDS_PER_POD)
|| BotConfig.ENVIRONMENT == Environment.DEVELOPMENT
|| !Config.ENABLE_SCALING
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coroutines = "1.9.0"
serialization = "1.7.3"
ktor = "2.3.12"
kord = "feature-user-apps-20240925.194307-6"
api = "3.37.6"
api = "3.37.7"
ksp = "2.0.21-1.0.25"
lavakord = "7.1.0"

Expand Down

0 comments on commit c936845

Please sign in to comment.