From 61909c21a41058c042ed807cfcffa58e88387969 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Mon, 13 Jan 2025 08:40:17 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=AE=80?= =?UTF-8?q?=E6=8A=A5=E5=91=BD=E4=BB=A4=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E4=BB=A5=E2=80=9C=E7=AE=80=E6=8A=A5?= =?UTF-8?q?=E2=80=9D=E5=BC=80=E5=A4=B4=E7=9A=84=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/bot/eventMsg.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/routes/bot/eventMsg.ts b/routes/bot/eventMsg.ts index 3990fa9..c11b316 100644 --- a/routes/bot/eventMsg.ts +++ b/routes/bot/eventMsg.ts @@ -113,7 +113,10 @@ const manageCMDMsg = async (ctx: Context) => { return } // 简报 - if (msgText.includes("share") && msgText.includes("简报")) { + if ( + msgText.startsWith("简报") || + (msgText.includes("share") && msgText.includes("简报")) + ) { logger.info(`bot command is share report, chatId: ${chatId}`) // 这个用时比较久,先发一条提醒用户收到了请求 // TODO: 迁移到简报服务中 From 2deb583dc372160f7a122cceec70adfd6c45c646 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Mon, 13 Jan 2025 12:24:48 +0000 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E4=BB=A5=E2=80=9Cshare=E2=80=9D=E5=BC=80=E5=A4=B4?= =?UTF-8?q?=E7=9A=84=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/bot/eventMsg.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/bot/eventMsg.ts b/routes/bot/eventMsg.ts index c11b316..16cabcc 100644 --- a/routes/bot/eventMsg.ts +++ b/routes/bot/eventMsg.ts @@ -115,6 +115,7 @@ const manageCMDMsg = async (ctx: Context) => { // 简报 if ( msgText.startsWith("简报") || + msgText.startsWith("share") || (msgText.includes("share") && msgText.includes("简报")) ) { logger.info(`bot command is share report, chatId: ${chatId}`)