mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-11 07:33:14 -04:00
typing indicator
This commit is contained in:
parent
9716fb1f6e
commit
dca55fd80c
4 changed files with 19 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -24,6 +24,8 @@ module.exports = {
|
|||
context.triggerTyping();
|
||||
if(!args.text) return editOrReply(context, {embeds:[createEmbed("warning", context, `Missing Parameter (text).`)]})
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue