From e7220558710ddad17812fadd356bee0cf1b6ed78 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 19 Sep 2022 14:58:34 +0600 Subject: [PATCH] several small improvements --- FSMBot/src/main/kotlin/SimpleFSMBot.kt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/FSMBot/src/main/kotlin/SimpleFSMBot.kt b/FSMBot/src/main/kotlin/SimpleFSMBot.kt index 5c569f5..9b37e22 100644 --- a/FSMBot/src/main/kotlin/SimpleFSMBot.kt +++ b/FSMBot/src/main/kotlin/SimpleFSMBot.kt @@ -38,12 +38,11 @@ suspend fun main(args: Array) { } ) { strictlyOn { - sendMessage( - it.context, - buildEntities { - +"Send me some content or " + botCommand("stop") + " if you want to stop sending" - } - ) + send( + it.context + ) { + +"Send me some content or " + botCommand("stop") + " if you want to stop sending" + } val contentMessage = waitContentMessage().first() val content = contentMessage.content @@ -57,7 +56,7 @@ suspend fun main(args: Array) { } } strictlyOn { - send(it.context, "You have stopped sending of content") + send(it.context) { +"You have stopped sending of content" } null }