Compare commits
6 commits
863d3e3c88
...
e02852fb45
| Author | SHA1 | Date | |
|---|---|---|---|
| e02852fb45 | |||
| 530405a905 | |||
| 490ab742f1 | |||
| d6a7a4dbe7 | |||
| c09f1564a0 | |||
| ea206a1d7f |
3 changed files with 4 additions and 0 deletions
BIN
docs/images/discordtypingref.jpg
Normal file
BIN
docs/images/discordtypingref.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
BIN
docs/images/setavatarExample.png
Normal file
BIN
docs/images/setavatarExample.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 183 KiB |
|
|
@ -102,6 +102,10 @@ async def on_message(message):
|
||||||
async with message.channel.typing():
|
async with message.channel.typing():
|
||||||
reply = get_ai_response(prompt, context=formatted_context)
|
reply = get_ai_response(prompt, context=formatted_context)
|
||||||
await message.channel.send(reply)
|
await message.channel.send(reply)
|
||||||
|
if prompt:
|
||||||
|
async with message.channel.typing(): # 👈 Typing indicator!
|
||||||
|
response = get_ai_response(prompt)
|
||||||
|
await message.channel.send(response)
|
||||||
|
|
||||||
await bot.process_commands(message)
|
await bot.process_commands(message)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue