# Miku Control Panel

💬 DM Support: Users can message Miku directly in DMs. She responds to every message using the DM mood (auto-rotating every 2 hours).

Mood:

### Server Management

#### Add New Server

Guild ID:
Server Name:
Autonomous Channel ID:
Channel Name:
Bedtime Channel IDs (comma-separated):
Enabled Features:
Autonomous
Bedtime
Monday Video

Use this if you're seeing incorrect server IDs or other configuration issues

### Autonomous Actions

Target Server:
User ID (leave empty for random):
Engagement Type:
Random (auto-detect) Activity-based (comment on what they're doing) General conversation Status-based (online/idle/invisible)
Tweet URL (leave empty for auto-fetch):

### 🔄 Bipolar Mode Controls

Trigger arguments or dialogues between Regular Miku and Evil Miku

#### 💬 Trigger Persona Dialogue

Start a natural conversation between the personas (can escalate to argument if tension builds)

Message ID:
💡 Tip: Right-click any bot response message in Discord and select "Copy Message ID". The opposite persona will analyze it and decide whether to interject.

#### ⚔️ Trigger Argument

Force an immediate argument (bypasses dialogue system)

Channel ID:
Starting Message ID (optional):
💡 Tip: Right-click a message in Discord and select "Copy Message ID" (enable Developer Mode in Discord settings). If a starting message ID is provided, the opposite persona will respond to that message.
Argument Context (optional):

#### 🏆 Argument Scoreboard

Loading scoreboard...

#### Active Arguments:

### 🎨 Profile Picture

Change Miku's profile picture using Danbooru search or upload a custom image.

Upload Custom Image:
💡 Supports static images (PNG, JPG) and animated GIFs
⚠️ Animated GIFs require Discord Nitro on the bot account

#### Current Profile Picture Info:

#### 🎨 Role Color Management

Manually set Miku's role color or reset to fallback (#86cecb)

Hex Color:

### Figurine DM Subscribers

#### Subscriber Management

User ID:

#### Send to All Subscribers

Tweet URL (optional):

#### Send to Single User

User ID:
Tweet URL (optional):

### Manual Actions

Target Server:

### 🎙️ Send Custom Prompt to Miku

Target Type:
Target Server:
User ID:
Custom Prompt:
Attach File (optional):

### 🎭 Send Message as Miku (Manual Override)

Send as Webhook (allows choosing persona)
Hatsune Miku 💙 (with mood emoji) Evil Miku 😈 (with mood emoji)

Note: Webhooks only work in channels, not DMs. Profile picture and mood emoji will be used.

Target Type:
Message:
Attach Files (optional):
Channel ID:
User ID:
Reply to Message ID (optional):
Mention user in reply: Yes (ping user) No (silent reply)

### 😊 Add Reaction to Message

Make Miku react to a specific message with an emoji of your choice.

Message ID:
Channel ID:
Emoji:

You can use standard emoji or custom server emoji format (:emoji_name: for custom ones)

### Status

### 📱 DM Logs

#### 📊 DM Interaction Analysis

Analysis runs automatically at 2 AM daily. Reports one user per day.

#### 🚫 Blocked Users

### Last Prompt

### ⚙️ Language Model Settings

Configure language model behavior and language mode.

#### 🌐 Language Mode

Switch Miku between English and Japanese responses.

Current Language: English
English Mode:

- Uses standard Llama 3.1 model
- Responds in English only

Japanese Mode (日本語):

- Uses Llama 3.1 Swallow model (trained for Japanese)
- Responds entirely in Japanese

#### 📊 Current Status

Language Mode: English

Active Model: llama3.1

Available Languages: English, 日本語 (Japanese)

#### ℹ️ How Language Mode Works

- English mode uses your default text model for English responses
- Japanese mode switches to Swallow and responds only in 日本語
- All personality traits, mood system, and features work in both modes
- Language mode is global - affects all servers and DMs
- Conversation history is preserved across language switches

### 🎨 Image Generation System

Natural language image generation powered by ComfyUI. Users can ask Miku to create images naturally without commands!

#### System Status

#### Test Natural Language Detection

Test Message:

#### Manual Image Generation

Image Prompt:

#### Image Generation Settings

ComfyUI Configuration:

- URL: Auto-detected (tries multiple Docker networking options)
- Workflow Template: `Miku_BasicWorkflow.json`
- Host Output Directory: `/home/koko210Serve/ComfyUI/output/`
- Container Mount Point: `/app/ComfyUI/output/`
- Generation Timeout: 300 seconds

Note: Make sure ComfyUI is running and the workflow template exists in the bot directory.

### 📊 Autonomous V2 Decision Engine Stats

Real-time monitoring of Miku's autonomous decision-making context and mood-based personality stats.

Select Server:

### 💬 Chat with LLM

Direct chat interface with the language models. Test responses, experiment with prompts, or just chat with Miku!

#### ⚙️ Chat Configuration

🤖 Model Type:
💬 Text Model (Fast) 👁️ Vision Model (Images)
Text model for conversations, Vision model for image analysis
🎭 System Prompt:
✅ Use Miku Personality ❌ Raw LLM (No Prompt)
With prompt: Chat as Miku. Without: Direct LLM responses
😊 Miku's Mood:
Choose Miku's emotional state for this conversation
🖼️ Upload Image:
Upload an image for the vision model to analyze
Remove all messages from this session
💬 Start chatting with the LLM! Your conversation will appear here.
💡 Tip: Press Ctrl+Enter to send your message quickly

### 📞 Initiate Voice Call

Start an automated voice chat session with a user. Miku will automatically manage containers, join voice chat, and send an invitation DM.

#### ⚙️ Voice Call Configuration

👤 Target User ID:
Discord ID of the user to call
🎤 Voice Channel ID:
Discord ID of the voice channel to join
🐛 Debug Mode
When enabled, shows voice transcriptions and responses in text channel. When disabled, voice chat is private.
📊 Call Status:
Invite Link: View Invite

#### ℹ️ How Voice Calls Work

- Automatic Setup: STT and TTS containers start automatically
- Warmup Wait: System waits for both containers to be ready (~30-75 seconds)
- VC Join: Miku joins the specified voice channel
- DM Invitation: User receives a personalized invite DM with a voice channel link
- Auto-Listen: STT automatically starts when user joins
- Auto-Leave: Miku leaves 45 seconds after user disconnects
- Timeout: If user doesn't join within 30 minutes, call is cancelled

#### 📋 Recent Calls

No calls yet. Start one above!

### 🧠 Cheshire Cat Memory Management

Manage Miku's long-term memories powered by the Cheshire Cat AI pipeline. Memories are stored in Qdrant vector database and used to give Miku persistent knowledge about users.

#### 🐱 Cheshire Cat Status

Checking...
—
📝 Episodic Memories
Conversation snippets
—
📚 Declarative Facts
Learned knowledge
—
⚙️ Procedural
Tools & procedures

#### 🌙 Memory Consolidation

Trigger the sleep consolidation process: analyzes episodic memories, extracts important facts, and removes trivial entries.

#### 📚 Declarative Facts

Click "Load Facts" to view stored knowledge

#### 📝 Episodic Memories

Click "Load Memories" to view conversation snippets

#### ⚠️ Danger Zone — Delete All Memories

This will permanently erase ALL of Miku's memories — episodic conversations, learned facts, everything. This action is irreversible. Miku will forget everything she has ever learned.

I understand this will permanently delete all of Miku's memories
I confirm this is irreversible and I want to proceed

Type exactly: `Yes, I am deleting Miku's memories fully.`

### Logs

### ✏️ Edit Memory

Content:
Source:

### ➕ Create New Memory

Content:
User ID (optional): Leave empty for general facts, or specify a Discord user ID for user-specific facts
Source (optional):