feat: Rename AI model commands for clarity and consistency in roleplay context

This commit is contained in:
Slipstream 2025-05-14 21:02:45 -06:00
parent 9cc3621fb1
commit 6806dd64ff
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -128,9 +128,9 @@ class RoleplayTetoCog(commands.Cog):
self.conversations[user_id]['messages'].pop()
save_conversation_history(self.conversations) # Save history after removing failed message
@app_commands.command(name="set_ai_model", description="Sets the AI model for your roleplay conversations.")
@app_commands.command(name="set_rp_ai_model", description="Sets the AI model for your roleplay conversations.")
@app_commands.describe(model_name="The name of the AI model to use (e.g., google/gemini-2.5-flash-preview:thinking).")
async def set_ai_model(self, interaction: discord.Interaction, model_name: str):
async def set_rp_ai_model(self, interaction: discord.Interaction, model_name: str):
user_id = str(interaction.user.id)
if user_id not in self.conversations or not isinstance(self.conversations[user_id], dict):
self.conversations[user_id] = {'messages': [], 'model': DEFAULT_AI_MODEL}
@ -140,8 +140,8 @@ class RoleplayTetoCog(commands.Cog):
save_conversation_history(self.conversations)
await interaction.response.send_message(f"Your AI model has been set to `{model_name}` desu~", ephemeral=True)
@app_commands.command(name="get_ai_model", description="Shows the current AI model used for your roleplay conversations.")
async def get_ai_model(self, interaction: discord.Interaction):
@app_commands.command(name="get_rp_ai_model", description="Shows the current AI model used for your roleplay conversations.")
async def get_rp_ai_model(self, interaction: discord.Interaction):
user_id = str(interaction.user.id)
user_model = self.conversations.get(user_id, {}).get('model', DEFAULT_AI_MODEL)
await interaction.response.send_message(f"Your current AI model is `{user_model}` desu~", ephemeral=True)