diff --git a/deploy.bsh b/deploy.bsh index f04e65c..b742551 100644 --- a/deploy.bsh +++ b/deploy.bsh @@ -18,4 +18,4 @@ git rebase mvn clean package -DskipTests=true echo "run project" -nohup java -Xms512m -Xmx1024m "-Dspring.config.location=file:./dionea.properties" -jar target/dionea-0.0.1.jar & \ No newline at end of file +nohup java "-Dspring.config.location=file:./dionea.properties" -jar target/dionea-0.0.1.jar & \ No newline at end of file diff --git a/src/main/kotlin/pro/dionea/service/actions/ReplyAction.kt b/src/main/kotlin/pro/dionea/service/actions/ReplyAction.kt index 220e2b3..6d44d6b 100644 --- a/src/main/kotlin/pro/dionea/service/actions/ReplyAction.kt +++ b/src/main/kotlin/pro/dionea/service/actions/ReplyAction.kt @@ -8,7 +8,9 @@ import org.telegram.telegrambots.meta.api.objects.replykeyboard.buttons.InlineKe class ReplyAction(val botName: String): UpdateAction { override fun check(update: Update): Boolean - = update.message.text.contains(botName) && update.message.isReply + = update.message.text != null + && update.message.text.contains(botName) + && update.message.isReply override fun execute(update: Update, remoteChat: RemoteChat) { val message = update.message