typing indicator

This commit is contained in:
derpystuff 2023-08-11 00:15:29 +02:00
parent 9716fb1f6e
commit dca55fd80c
4 changed files with 19 additions and 1 deletions

View file

@ -34,6 +34,8 @@ module.exports = {
if(args.prompt !== "") prompt = args.prompt
try{
await editOrReply(context, createEmbed("typing", context, "Generating response..."))
let res = await superagent.post(`${process.env.AI_SERVER}/openai`)
.set({
Authorization: process.env.AI_SERVER_KEY