From fcb934e1c745c453be8696e4157cd33cc44451b6 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 30 Jan 2023 09:48:31 +0900 Subject: [PATCH] =?UTF-8?q?=E8=B3=AA=E5=95=8F=E3=81=AB=E3=81=93=E3=81=9F?= =?UTF-8?q?=E3=81=88=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/slack/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/slack/events.ts b/api/slack/events.ts index 0fdaa73..99c9b27 100644 --- a/api/slack/events.ts +++ b/api/slack/events.ts @@ -31,7 +31,7 @@ const app = new App({ token, receiver }); // required app_mentions:read chat:write app.event("app_mention", async ({ event, say }) => { - const prompt = `語尾を「にゃん」に。${event.text + const prompt = `語尾を「にゃん」にして質問にこたえる\n${event.text .replace(/<@[0-9A-Z]+>/, "") .trim()}\n`; const text = await gpt(prompt);