fix: Correct error handling message formatting in Teto AI conversation

This commit is contained in:
Slipstream 2025-05-17 12:28:05 -06:00
parent 4562b4b02f
commit a806ba980d
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -1,3 +1,4 @@
import json
import discord
from discord.ext import commands
from discord import app_commands
@ -367,7 +368,7 @@ class TetoCog(commands.Cog):
_teto_conversations[convo_key] = convo[-10:] # Keep last 10 interactions
log.info("[TETO DEBUG] AI reply sent successfully.")
except Exception as e:
await channel.send(f"**Teto AI conversation failed! TwT**\n {e}")@
await channel.send(f"**Teto AI conversation failed! TwT**\n {e}")
log.error(f"[TETO DEBUG] Exception during AI reply: {e}")
@app_commands.command(name="set_ai_model", description="Sets the AI model for Teto.")