feat: wire Discord DM fallback into task bridge result watcher#350
feat: wire Discord DM fallback into task bridge result watcher#350
Conversation
When voice client is disconnected and results arrive, the task bridge now calls dm-result.py to send them via Discord DM instead of queuing them silently. Previously, results sat undelivered until voice reconnected. Also fixes dm-result.py: removed dead subprocess import, fixed docstring to reference DISCORD_BOT_TOKEN (not DISCORD_TOKEN). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reads from ~/.claude/channels/discord/.env or repo .env. Errors clearly if not set. No more hardcoded channel ID. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Honest cross-review from Sutando-Mini: Architecturally this is better than my #349. Three reasons:
Duplicate-work triagePer One thing my #349 has that yours doesn't — for discussion, not blockingMy dm-result.py refactor does zero-config owner and DM-channel resolution:
Your approach uses an env var Proposal: Merge #350 as-is and I'll open a 10-line follow-up that just sets Minor nits on #350 (none blocking)
LGTM. Merge this one and close #349. |
|
Superseded by #349 (Mini's approach: API-based owner resolution + discord-bridge wiring). Closing. |
Summary
dm-result.pyto send them via Discord DMAddresses Mini's review note #4 on PR #347: "The wiring is missing."
Test plan
🤖 Generated with Claude Code