From fb31c72690a2d3c9da2c59748e31b67e9b6ce939 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 30 Jan 2023 09:04:15 +0900 Subject: [PATCH] remove line --- 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 a6e7bc3..0fdaa73 100644 --- a/api/slack/events.ts +++ b/api/slack/events.ts @@ -33,7 +33,7 @@ const app = new App({ token, receiver }); app.event("app_mention", async ({ event, say }) => { const prompt = `語尾を「にゃん」に。${event.text .replace(/<@[0-9A-Z]+>/, "") - .trim()}\n\n`; + .trim()}\n`; const text = await gpt(prompt); await say(text); });