質問にこたえる

This commit is contained in:
Nebel 2023-01-30 09:48:31 +09:00 committed by GitHub
parent fb31c72690
commit fcb934e1c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ const app = new App({ token, receiver });
// required app_mentions:read chat:write // required app_mentions:read chat:write
app.event("app_mention", async ({ event, say }) => { app.event("app_mention", async ({ event, say }) => {
const prompt = `語尾を「にゃん」に${event.text const prompt = `語尾を「にゃん」にして質問にこたえる\n${event.text
.replace(/<@[0-9A-Z]+>/, "") .replace(/<@[0-9A-Z]+>/, "")
.trim()}\n`; .trim()}\n`;
const text = await gpt(prompt); const text = await gpt(prompt);