Auto-create system-prompt.txt on startup

- Creates data/system-prompt.txt with default SchrottBot personality
- Ensures persistent directory exists
- Group prompt is empty by default (no preset)
- Can be customized per group via /ai setup

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 10:58:13 +01:00
parent cfa281e676
commit 64b2a95d57
2 changed files with 54 additions and 18 deletions

View File

@@ -128,15 +128,14 @@ AI_SYSTEM_PROMPT=Du bist ein freundlicher Chat-Bot...
### Prompt-System
- **Globaler System-Prompt** - Immer aktiv, geladen aus:
1. `data/system-prompt.txt` (falls vorhanden)
2. `AI_SYSTEM_PROMPT` aus `.env` (Fallback)
- **Gruppen-Prompt** (pro Chat) - Ergänzt globalen Prompt
1. `data/system-prompt.txt` (persistent, wird automatisch erstellt)
2. Fallback: Default "SchrottBot"-Persönlichkeit
- **Gruppen-Prompt** (pro Chat) - Leer voreingestellt, kann `/ai setup` ergänzen
**Beispiel system-prompt.txt:**
```
data/system-prompt.txt
```
Die Datei kann bearbeitet werden, ohne den Container neu zu bauen.
**system-prompt.txt:**
- Wird beim ersten Start automatisch in `data/` erstellt
- Enthält die UlfBot/SchrottBot-Persönlichkeit
- Kann bearbeitet werden, ohne den Container neu zu bauen
## Technisches