From a2d53e4aea47aa1cf93097e4f217df28e3159f00 Mon Sep 17 00:00:00 2001 From: hanshino Date: Mon, 11 Nov 2024 14:30:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20interactWithBot=20?= =?UTF-8?q?=E5=87=BD=E6=95=B8=E4=BB=A5=E6=94=AF=E6=8F=B4=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E8=99=95=E7=90=86=EF=BC=8C=E4=BF=AE=E6=AD=A3=20recordLatestGro?= =?UTF-8?q?upUser=20=E5=87=BD=E6=95=B8=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/app.js b/app/src/app.js index 946c0d0..4859e65 100644 --- a/app/src/app.js +++ b/app/src/app.js @@ -367,14 +367,15 @@ async function CustomerOrderBased(context, { next }) { if (detectResult === false) return next; } -function interactWithBot(context) { +function interactWithBot(context, { next }) { return router([ askBot("你好", context => context.replyText("你好啊!")), askBot(["誰的問題", "誰在搞"], whosProblem), + route("*", next), ]); } -const recordLatestGroupUser = async (context, { next }) => { +async function recordLatestGroupUser(context, { next }) { if (context.event.source.type !== "group") return next; const { userId, groupId } = context.event.source; if (!userId) return next; @@ -393,7 +394,7 @@ const recordLatestGroupUser = async (context, { next }) => { } return next; -}; +} /** * 誰的問題