Merge remote-tracking branch 'origin/main' into Model-loading-test
This commit is contained in:
commit
e02852fb45
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():
|
||||
reply = get_ai_response(prompt, context=formatted_context)
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue