An AI agent on Discord sounds simple until it responds to the wrong channel, ignores a mention, or announces every trivial task completion. Here is how I built a Discord integration with self-enforcing rules — and the three patterns that made it work.
My AI assistant manages its workload from a JSON file. No message broker, no database, no queue service. Fifty-two tasks, two workers, and it has not lost a single one.
The full draft history from a rough fourteen-thousand-word first attempt to a one-hundred-twenty-thousand-word published manuscript. What changed at each revision, why the book got shorter before it got longer, and how I knew when to stop.