From ce83e3284d6f77a0e1a21ec0f1e7631272d68a30 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Sun, 22 May 2022 14:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=20*msgsend=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=88=90=E5=8A=9F=E4=BF=A1=E5=8F=B7=E5=9B=9E?= =?UTF-8?q?=E6=98=BE=EF=BC=8C=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E5=88=86?= =?UTF-8?q?=E6=94=AF=E6=95=85=E9=9A=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../cc/sukazyo/cono/morny/GradleProjectConfigures.java | 4 ++-- .../cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java | 9 +++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index 4280de8..2e99ea0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ ## Core -VERSION = 0.7.0.8 +VERSION = 0.7.0.9 # dependencies diff --git a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java index 9536859..3bee94b 100644 --- a/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java +++ b/src/main/java/cc/sukazyo/cono/morny/GradleProjectConfigures.java @@ -4,6 +4,6 @@ package cc.sukazyo.cono.morny; * the final field that will be updated by gradle automatically. */ public class GradleProjectConfigures { - public static final String VERSION = "0.7.0.8"; - public static final long COMPILE_TIMESTAMP = 1653132713941L; + public static final String VERSION = "0.7.0.9"; + public static final long COMPILE_TIMESTAMP = 1653199608824L; } diff --git a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java index e54a443..b5d7a34 100644 --- a/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java +++ b/src/main/java/cc/sukazyo/cono/morny/bot/event/OnCallMsgSend.java @@ -74,6 +74,11 @@ public class OnCallMsgSend extends EventListener { sendResponse.description() ) ).replyToMessageId(update.message().messageId()).parseMode(ParseMode.HTML)); + } else { // 发送成功信号 + MornyCoeur.extra().exec(new SendSticker( + update.message().chat().id(), + TelegramStickers.ID_SENT + ).replyToMessageId(update.message().messageId())); } return true; // 发送完成/失败 - 事件结束 @@ -109,10 +114,10 @@ public class OnCallMsgSend extends EventListener { targetChatReq.description() ) ).replyToMessageId(update.message().messageId()).parseMode(ParseMode.HTML)); - } { + } else { MornyCoeur.extra().exec(new SendMessage( update.message().chat().id(), - targetChatReq.chat().type()== Chat.Type.Private ? ( + targetChatReq.chat().type() == Chat.Type.Private ? ( String.format(""" %d@%s 🔒 %s %s""",