reformats results & fixes command parsing
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user