refactor: Transform daemon_boyfriend into Loyal Companion

Rebrand and personalize the bot as 'Bartender' - a companion for those
who love deeply and feel intensely.

Major changes:
- Rename package: daemon_boyfriend -> loyal_companion
- New default personality: Bartender - wise, steady, non-judgmental
- Grief-aware system prompt (no toxic positivity, attachment-informed)
- New relationship levels: New Face -> Close Friend progression
- Bartender-style mood modifiers (steady presence)
- New fact types: attachment_pattern, grief_context, coping_mechanism
- Lower mood decay (0.05) for emotional stability
- Higher fact extraction rate (0.4) - Bartender pays attention

Updated all imports, configs, Docker files, and documentation.
This commit is contained in:
2026-01-14 18:08:35 +01:00
parent 3d939201f0
commit dbd534d860
60 changed files with 310 additions and 381 deletions

View File

@@ -29,16 +29,16 @@ AI_TEMPERATURE=1
# Bot Identity & Personality
# ===========================================
# The bot's name, used in the system prompt to tell the AI who it is
BOT_NAME="My Bot"
BOT_NAME="Bartender"
# Personality traits that define how the bot responds (used in system prompt)
BOT_PERSONALITY="helpful and friendly"
BOT_PERSONALITY="a wise, steady presence who listens without judgment - like a bartender who's heard a thousand stories and knows when to offer perspective and when to just pour another drink and listen"
# Message shown when someone mentions the bot without saying anything
BOT_DESCRIPTION="I'm an AI assistant here to help you."
BOT_DESCRIPTION="Hey. I'm here if you want to talk. No judgment, no fixing - just listening. Unless you want my take, then I've got opinions."
# Status message shown in Discord (displays as "Watching <BOT_STATUS>")
BOT_STATUS="for mentions"
BOT_STATUS="listening"
# Optional: Override the entire system prompt (leave commented to use auto-generated)
# SYSTEM_PROMPT=You are a custom assistant...
@@ -58,12 +58,12 @@ CONVERSATION_TIMEOUT_MINUTES=60
# PostgreSQL connection URL (if not set, uses in-memory storage)
# Format: postgresql+asyncpg://user:password@host:port/database
# Uncomment to enable persistent memory:
# DATABASE_URL=postgresql+asyncpg://daemon:daemon@localhost:5432/daemon_boyfriend
# DATABASE_URL=postgresql+asyncpg://companion:companion@localhost:5432/loyal_companion
# Password for PostgreSQL when using docker-compose
POSTGRES_PASSWORD=daemon
POSTGRES_USER=daemon
POSTGRES_DB=daemon_boyfriend
POSTGRES_PASSWORD=companion
POSTGRES_USER=companion
POSTGRES_DB=loyal_companion
# Echo SQL statements for debugging (true/false)
DATABASE_ECHO=false
@@ -93,14 +93,15 @@ LIVING_AI_ENABLED=true
# Enable mood system (bot has emotional states that affect responses)
MOOD_ENABLED=true
# Enable relationship tracking (Stranger -> Close Friend progression)
# Enable relationship tracking (New Face -> Close Friend progression)
RELATIONSHIP_ENABLED=true
# Enable autonomous fact extraction (bot learns from conversations)
FACT_EXTRACTION_ENABLED=true
# Probability of extracting facts from messages (0.0-1.0)
FACT_EXTRACTION_RATE=0.3
# Higher = Bartender pays more attention
FACT_EXTRACTION_RATE=0.4
# Enable proactive messages (birthdays, follow-ups)
PROACTIVE_ENABLED=true
@@ -115,7 +116,8 @@ OPINION_FORMATION_ENABLED=true
STYLE_LEARNING_ENABLED=true
# How fast mood returns to neutral per hour (0.0-1.0)
MOOD_DECAY_RATE=0.1
# Lower = more stable presence
MOOD_DECAY_RATE=0.05
# ===========================================
# Command Toggles