From f7ccac9b1f376026c46cee147404c6f18934d969 Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Wed, 29 Jan 2025 01:36:32 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E6=8A=A5=E5=91=8A=E8=AE=A2?= =?UTF-8?q?=E9=98=85=E5=92=8C=E6=B8=B8=E6=88=8F=E6=8E=A7=E5=88=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/bot/eventMsg.ts | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/routes/bot/eventMsg.ts b/routes/bot/eventMsg.ts index 73709a5..1b18901 100644 --- a/routes/bot/eventMsg.ts +++ b/routes/bot/eventMsg.ts @@ -98,29 +98,37 @@ const manageIntent = async (ctx: Context) => { ) break case 7: - groupAgent.report.setSubscription(ctx, "daily", true) + groupAgent.report + .setSubscription(ctx, "daily", true) + .catch(() => null) break case 8: - groupAgent.report.setSubscription(ctx, "weekly", true) + groupAgent.report + .setSubscription(ctx, "weekly", true) + .catch(() => null) break case 9: - groupAgent.report.setSubscription(ctx, "daily", false) + groupAgent.report + .setSubscription(ctx, "daily", false) + .catch(() => null) break case 10: - groupAgent.report.setSubscription(ctx, "weekly", false) + groupAgent.report + .setSubscription(ctx, "weekly", false) + .catch(() => null) break case 11: - groupAgent.report.gen4Test(ctx, "daily") + groupAgent.report.gen4Test(ctx, "daily").catch(() => null) break case 12: - groupAgent.report.gen4Test(ctx, "weekly") + groupAgent.report.gen4Test(ctx, "weekly").catch(() => null) break case 13: - soupAgent.startOrStopGame(ctx, true, "manual") + soupAgent.startOrStopGame(ctx, true, "manual").catch(() => null) break case 1: default: - groupAgent.agent(ctx) + groupAgent.agent(ctx).catch(() => null) break } }