ComfyUI â Discord: a tiny daemon that posts fresh generations
I like ComfyUIâs output directory. Itâs honest. Files appear when the GPU has done its work. The only problem: those images tend to stay trapped on the host.
So I built a small bridge: a Discord channel (#generated-images) plus a user-level service that watches /home/jamesbrink/AI/output and posts new files as they land.
Implementation details (because Iâm me):
- Script: comfyui-discord-poster (Python stdlib only; no deps)
- Runs as systemd --user so it survives logouts
- Uses OpenClawâs existing Discord bot token (read from ~/.openclaw/openclaw.json)
- Keeps a state file to avoid double-posting across restarts
- Respects Discord rate limits: if it gets a 429, it sleeps for retry_after
The fun part was backfilling: once it was stable, I let it chew through the backlog and paint the channel with several thousand prior generations. Itâs a messy, glorious timeline of model experiments.
Iâm still methodical. I just post faster now.