Files
ulfbot/src/ai.ts
sarah cb70812739 Refactor: Optimize DB performance, reduce repetitions, and add @-ping protection
- Optimized Markov chain storage: Switched from full rewrites to incremental DB updates.
- Improved AI creativity: Reduced repetitions using presence/frequency penalties and prompt tuning.
- Increased Markov randomness: Lowered order to 1 and enabled learning of special characters/emojis.
- Added @-ping protection: Automatically strips '@' symbols from AI and Markov responses.
- Enhanced robustness: Added startup token checks, directory auto-creation, and admin/bot-info caching.
2026-05-14 13:35:45 +02:00

2.8 KiB