Skip to content

Commit

Permalink
Fix to typing loop
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaUrsa committed Nov 20, 2023
1 parent a494a28 commit ee5ca57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/discord/commands/guild/d.ai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,10 @@ export async function discordAiChat(
} else {
await tripbotLog.send(`Error generating image: ${JSON.stringify(image, null, 2)}`);
}
})
.catch(async error => {
waitingOnGen = false;
await tripbotLog.send(`Error generating image: ${JSON.stringify(error, null, 2)}`);
});
// While the above function is running, send the typing function
while (waitingOnGen) {
Expand Down

0 comments on commit ee5ca57

Please sign in to comment.