From 1c5e9d3f45ac7b3d8399c88aff8873773b482a2a Mon Sep 17 00:00:00 2001 From: latte Date: Mon, 12 Jan 2026 17:34:20 +0100 Subject: [PATCH] Fix .env.example: comment out DATABASE_URL, add all settings and commands reference --- .env.example | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index a95cbb9..c2a7f0a 100644 --- a/.env.example +++ b/.env.example @@ -53,21 +53,22 @@ MAX_CONVERSATION_HISTORY=20 CONVERSATION_TIMEOUT_MINUTES=60 # =========================================== -# Database (PostgreSQL) +# Database (PostgreSQL) - Optional # =========================================== # PostgreSQL connection URL (if not set, uses in-memory storage) # Format: postgresql+asyncpg://user:password@host:port/database -DATABASE_URL=postgresql+asyncpg://daemon:daemon@localhost:5432/daemon_boyfriend +# Uncomment to enable persistent memory: +# DATABASE_URL=postgresql+asyncpg://daemon:daemon@localhost:5432/daemon_boyfriend # Password for PostgreSQL when using docker-compose POSTGRES_PASSWORD=daemon # Echo SQL statements for debugging (true/false) -# DATABASE_ECHO=false +DATABASE_ECHO=false # Connection pool settings -# DATABASE_POOL_SIZE=5 -# DATABASE_MAX_OVERFLOW=10 +DATABASE_POOL_SIZE=5 +DATABASE_MAX_OVERFLOW=10 # =========================================== # Web Search (SearXNG) @@ -94,7 +95,19 @@ LOG_LEVEL=INFO # LOG_FORMAT=%(asctime)s - %(name)s - %(levelname)s - %(message)s # =========================================== -# Monitoring Commands +# Commands Reference # =========================================== -# Use !status (admin only) for detailed metrics -# Use !health (anyone) for quick health check +# Monitoring: +# !status - Detailed metrics (admin only) +# !health - Quick health check (anyone) +# +# Memory (requires database): +# !setname - Set your preferred name +# !clearname - Reset to Discord display name +# !remember - Tell the bot something about you +# !whatdoyouknow - See what the bot remembers +# !forgetme - Clear all facts about you +# +# Admin Memory: +# !setusername @user - Set name for another user +# !teachbot @user - Add a fact about a user