Skip to main content

AI Roleplay Commands

Engage in immersive roleplaying sessions with AI-driven characters. You can create, manage, and interact with multiple personas, each with its own distinct characteristics and memory.

Chatting with a Persona (!rp)

Once you have selected a persona, use the !rp command to send messages to it. The AI will respond in character.

Command: !rp <your message to the persona> Cost: 1 Snak per interaction. Model: YuriAI

Example Usage

Use code with caution. Markdown !rp Greetings, traveler. What news do you bring from the northern mountains?

Managing Personas

Create New Persona (!rp_new)

Create a new character for roleplaying.

Command: !rp_new Name|Description|Tone[|UserProfile] Cost: Free to create.

  • Name: The name of your persona.
  • Description: A detailed description of the persona's identity, background, and how it should behave (this acts as a system prompt).
  • Tone: Keywords describing the persona's speaking style or mood (e.g., "Formal, Mysterious", "Cheerful, Optimistic").
  • UserProfile (Optional): A description of your character/persona in the roleplay, which the AI persona can be aware of.

Example: Use code with caution. !rp_new Elara|A wise old sorceress from a hidden mountain sanctuary. She is cautious of outsiders but possesses deep knowledge of ancient lore. Speaks formally and sometimes cryptically.|Formal, Wise, Cautious|A young apprentice seeking forbidden knowledge. You are limited to a maximum number of personas (e.g., 5, defined by RPConstants.MAX_PERSONAS_PER_USER).

View Personas (!rp_view)

List all your created personas with options to select or delete them. Command: !rp_view Cost: Free. This will display an interactive list of your personas.

Select Persona (!rp_select)

Choose a persona to interact with. This persona will be used for subsequent !rp commands. Command: !rp_select <persona_id> Cost: Free. You can get the persona_id from the !rp_view command. This can also be done by clicking the "Select" button from !rp_view.

Delete Persona (!rp_delete)

Permanently delete a persona and all its associated memory. Command: !rp_delete <persona_id> Cost: Free. This can also be done by clicking the "Delete" button from !rp_view.

Reset Persona Memory (!rp_reset)

Clear all conversational history (raw messages and summaries) for a persona. This is useful if you want to start a fresh interaction without the AI remembering past conversations. Command: !rp_reset [persona_id] Cost: Free.

  • If persona_id is provided, it resets that specific persona.
  • If no persona_id is provided, it resets the currently selected persona.

View Persona Memory (!rp_memory)

Display the summarized memory entries for the currently selected persona. This shows what the AI has condensed from your past interactions. Command: !rp_memory Cost: Free.

How Persona Memory Works

  • System Prompt: Each persona has a base system prompt defined by its description and tone.
  • User Profile: If provided, your user profile is added to the system context.
  • Summaries: Long conversations are periodically summarized to maintain context without exceeding token limits. These summaries are fed back into the AI's context.
  • Recent Raw Messages: The most recent raw turns of the conversation are included directly in the prompt.
  • The bot aims to stay in character based on these combined inputs.

For more details on Snak costs, see the Snaks documentation.