Make it look like dale-bot is typing

This commit is contained in:
Luke Robles 2024-04-23 10:49:47 -07:00
parent 4c5fade0a7
commit deb082ed20

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"]