Make it look like dale-bot is typing

This commit is contained in:
Luke Robles 2024-04-23 10:49:47 -07:00
parent e63c12ef72
commit 14f2af2e1e

View File

@ -185,6 +185,7 @@ async def on_message(ctx):
}
headers = {"Content-Type": "application/json"}
await ctx.channel.trigger_typing()
response = requests.post(url, json=payload, headers=headers)
answer = response.json()["choices"][0]["message"]["content"]