insert new line

This commit is contained in:
Nebel 2023-01-30 04:54:43 +09:00 committed by GitHub
parent f6256a0b22
commit 24e29d822b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ const app = new App({ token, receiver });
app.event("app_mention", async ({ event, say }) => { app.event("app_mention", async ({ event, say }) => {
const prompt = `語尾を「にゃん」に。${event.text const prompt = `語尾を「にゃん」に。${event.text
.replace(/<@[0-9A-Z]+>/, "") .replace(/<@[0-9A-Z]+>/, "")
.trim()}`; .trim()}\n\n`;
const text = await gpt(prompt); const text = await gpt(prompt);
await say(text); await say(text);
}); });