mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 23:22:56 +00:00
fix: works??
This commit is contained in:
parent
077fa7a694
commit
40eb346f36
1 changed files with 6 additions and 6 deletions
|
|
@ -75,13 +75,13 @@ export default class Message implements Command {
|
|||
],
|
||||
}),
|
||||
},
|
||||
).then((r) => r.json());
|
||||
// .then((r) => r);
|
||||
).then((r) => r.json())
|
||||
.then((r) => r.choices[0].message.content);
|
||||
console.log(aiReq0, `api responsne`);
|
||||
await app.client.chat.postMessage({
|
||||
channel: event.channel,
|
||||
text: aiReq0,
|
||||
});
|
||||
// await app.client.chat.postMessage({
|
||||
// channel: event.channel,
|
||||
// text: aiReq0,
|
||||
// });
|
||||
const aiReq = JSON.parse(aiReq0);
|
||||
const m = await app.client.chat.postMessage({
|
||||
channel: event.channel,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue