diff --git a/core/game-animator/src/main/kotlin/GameAnimatorPlugin.kt b/core/game-animator/src/main/kotlin/GameAnimatorPlugin.kt index b32b2e048..95208b3e1 100644 --- a/core/game-animator/src/main/kotlin/GameAnimatorPlugin.kt +++ b/core/game-animator/src/main/kotlin/GameAnimatorPlugin.kt @@ -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") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 32566ce32..78f835aa7 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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"