Enhance AutoMod functionality with default word list and improved filtering

- Introduced a default blocked words list for the WORD_FILTER, including common profanity in both English and German.
- Updated the word matching logic to utilize Unicode word boundaries, reducing false positives.
- Implemented a button in the WebUI to load the default word list, enhancing user experience.
- Added functionality to seed default word filters only when necessary, preventing overwriting user-defined lists.
- Improved localization for new features related to the word list in both English and German.
- Documented changes in phase tracking to reflect the new AutoMod enhancements.
This commit is contained in:
TheOnlyMace
2026-07-25 17:42:06 +02:00
parent 2058713e03
commit 03bb406d82
9 changed files with 305 additions and 48 deletions

View File

@@ -634,3 +634,18 @@
- [ ] AutoMod-WARN → ebenfalls DM + Case verknüpft
- [ ] Dashboard: Warn-Tabelle zeigt `#`-Spalte
## Post-Phase AutoMod Standard-Wortliste DE/EN (Status: implementiert)
### Abgeschlossen (Code)
- `DEFAULT_AUTOMOD_BLOCKED_WORDS` (gängige DE+EN Schimpfwörter) als Default für `WORD_FILTER`
- Bestehende leere Wortlisten werden beim Ensure einmalig befüllt (außer bewusst geleert)
- Wort-Matching über Unicode-Wortgrenzen (weniger False Positives wie `class`/`ass`)
- Dashboard-Button „Standardliste laden (DE/EN)“
### Manuell testen
- [ ] Automod → Wortfilter: Liste ist vorausgefüllt bzw. Button lädt Defaults
- [ ] WORD_FILTER aktivieren → Nachricht mit Blockwort wird gefiltert
- [ ] Harmlose Wörter (`class`, `hello`) lösen keinen Treffer aus