reformats results & fixes command parsing
All checks were successful
CI / deploy (push) Successful in 4m20s
CI / deploy (pull_request) Successful in 4m13s

This commit is contained in:
Arindy
2025-02-10 00:26:30 +01:00
parent 77f392ed77
commit 001a35165a
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ final class DiceResource(@Context val sse: Sse) {
if (!sseBroadcasters.containsKey(id)) {
sseBroadcasters[id] = sse.newBroadcaster()
}
data.roll = data.command.split(" ").toTypedArray<String>()
data.roll = data.command.split(" ", "&", "and").filter { it.isNotEmpty() }.map { it.trim() }.toTypedArray<String>()
data.room = id.split(":")[0]
data.user = id.split(":")[1]
sseBroadcasters[id]?.broadcast(