finalize changes

This commit is contained in:
InsanusMokrassar committed 2025-08-11 15:56:20 +06:00
1 parent 70aca52960
commit e2d56a4d80
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -64,9 +64,10 @@ suspend fun main(args: Array<String>) {
waitAnyContentMessage().filter { message ->
message.sameThread(it.sourceMessage)
}.filter {
it.withContentOrNull<TextContent>() ?.content ?.textSources ?.run {
containsCommand("stop")
} != true
containsCommand(
"stop",
it.withContentOrNull<TextContent>() ?.content ?.textSources ?: return@filter false
) == false
}.first()
}
) ?: return@strictlyOn StopState(it.context)