Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
- Upgrade kordex
- Fix Game animator not replacing prefixes
  • Loading branch information
DRSchlaubi committed Oct 25, 2024
1 parent 1308185 commit 828682d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions core/game-animator/src/main/kotlin/GameAnimatorPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,31 +93,31 @@ data class Game(val type: ActivityType, val status: PresenceStatus, val text: St
'p' -> Game(
ActivityType.Game,
PresenceStatus.Online,
game.replaceFirst("p: ".toRegex(), "")
game.replaceFirst("p:\\s*".toRegex(), "")
)

'l' -> Game(
ActivityType.Listening,
PresenceStatus.Online,
game.replaceFirst("l: ".toRegex(), "")
game.replaceFirst("l:\\s*".toRegex(), "")
)

's' -> Game(
ActivityType.Streaming,
PresenceStatus.Online,
game.replaceFirst("s: ".toRegex(), "")
game.replaceFirst("s:\\s*".toRegex(), "")
)

'w' -> Game(
ActivityType.Watching,
PresenceStatus.Online,
game.replaceFirst("w: ".toRegex(), "")
game.replaceFirst("w:\\s*".toRegex(), "")
)

'c' -> Game(
ActivityType.Competing,
PresenceStatus.Online,
game.replaceFirst("c: ".toRegex(), "")
game.replaceFirst("c:\\s*".toRegex(), "")
)

else -> error("Invalid game: $this")
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[versions]
kotlin = "2.0.21"
kordex = "1.9.9-mikbot-SNAPSHOT"
kordex = "1.9.10-mikbot-SNAPSHOT"
kmongo = "5.1.0"
coroutines = "1.9.0"
serialization = "1.7.3"
ktor = "3.0.0"
kord = "feature-user-apps-20241022.210712-8"
api = "3.37.14"
api = "3.37.15"
ksp = "2.0.21-1.0.25"
lavakord = "7.1.0"

Expand Down

0 comments on commit 828682d

Please sign in to comment.