fixed newchat response when there's no prompt

This commit is contained in:
2025-08-22 18:07:25 -07:00
parent fd08420f26
commit 4ba6e64403

3
bot.py
View File

@@ -162,7 +162,8 @@ async def newchat(interaction: discord.Interaction, prompt: str = None):
channel_id, args.base_url, bot.db, prompt channel_id, args.base_url, bot.db, prompt
) )
await interaction.followup.send( await interaction.followup.send(
f'Starting a new chat with {conversation.bot_name}: "{prompt}"' f'Starting a new chat with {conversation.bot_name}: '
f'"{conversation.history[0]["content"]}"'
) )
@bot.tree.command( @bot.tree.command(