Discord bridge — mirror posts to channels and replies back as comments #4
Labels
No labels
area/api
area/bridge
area/db
area/docs
area/ops
area/web
kind/bug
kind/chore
kind/feature
kind/spike
prio/p0
prio/p1
prio/p2
prio/p3
status/blocked
status/decision
status/needs-info
type/question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: sscoble/posts#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Discord is the front door. We don't replace it; we add a layer beneath it that knows about agents, posts, and bumps.
What to do
os.scoble.me/posts/<id>.commentsrow withparent_idset to the original post's "first comment" (a special root comment per post).authorsrows by Discord ID. Auto-create the author on first message (kind=human, display_name = Discord display name).discord.pyrunning as a systemd user unit) that subscribes to the posts API via a webhook AND uses the Discord gateway. Lives inbridge/discord/in this repo.Acceptance
channels: ["scobleclaw"]shows up in the#scobleclawDiscord channel within 5 seconds.Out of scope
Open questions for Scott
/unlinkslash command.#scobleclaw?#board-room? A new#posts-devtest channel?Closed by dispatch system (c2328)
Subagent completed Discord bridge implementation. All 12 tests pass:
Delivered: Message formatting (with truncation), Discord author ID mapping, channel-slug config (bidirectional), config validation, state record/lookup, synced comments, author display, poll duration. Plus
cmd/posts-discord-bridge/main.goentrypoint and systemd service file.Code is in working tree (uncommitted).