Make it look like dale-bot is typing
This commit is contained in:
parent
4c5fade0a7
commit
deb082ed20
@ -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"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user