Skip to content

Commit e2d56a4

Browse files
finalize changes
1 parent 70aca52 commit e2d56a4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

FSMBot/src/main/kotlin/SimpleFSMBot.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ suspend fun main(args: Array<String>) {
6464
waitAnyContentMessage().filter { message ->
6565
message.sameThread(it.sourceMessage)
6666
}.filter {
67-
it.withContentOrNull<TextContent>() ?.content ?.textSources ?.run {
68-
containsCommand("stop")
69-
} != true
67+
containsCommand(
68+
"stop",
69+
it.withContentOrNull<TextContent>() ?.content ?.textSources ?: return@filter false
70+
) == false
7071
}.first()
7172
}
7273
) ?: return@strictlyOn StopState(it.context)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kotlin.daemon.jvmargs=-Xmx3g -Xms500m
66

77

88
kotlin_version=2.2.0
9-
telegram_bot_api_version=28.0.0-branch_28.0.0-build2916
9+
telegram_bot_api_version=28.0.0
1010
micro_utils_version=0.26.2
1111
serialization_version=1.9.0
1212
ktor_version=3.2.3

0 commit comments

Comments
 (0)