Add auto-polls to settle disagreements between users

LLM analysis now detects when two users are in a genuine
disagreement. When detected, the bot creates a native Discord
poll with each user's position as an option.

- Disagreement detection added to LLM analysis tool schema
- Polls last 4 hours with 1 hour per-channel cooldown
- LLM extracts topic, both positions, and usernames
- Configurable via polls section in config.yaml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 09:22:32 -05:00
parent 13a2030021
commit 622f0a325b
4 changed files with 113 additions and 0 deletions
+5
View File
@@ -84,6 +84,11 @@ modes:
spike_warning_threshold: 0.75
spike_mute_threshold: 0.90
polls:
enabled: true
duration_hours: 4
cooldown_minutes: 60 # Per-channel cooldown between auto-polls
coherence:
enabled: true
drop_threshold: 0.3 # How far below baseline triggers alert