spacedriveapp / spacedriveapp/spacebot
Discord parity: forum/media posting + multi-bot agent routing
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.4k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
Problem
Spacebot’s Discord adapter is strong for channels/threads, but it still misses a few practical features that OpenClaw users rely on in community servers.
Gaps
-
Forum/media parent posting flow is missing
- Current implementation creates
PublicThreadforOutboundResponse::ThreadReplyand falls back to plain message on failure. - There is no explicit handling for Discord forum/media parent channels where posting requires creating a thread-with-starter message.
- In practice this means forum workflows are inconsistent compared to regular channels.
- Current implementation creates
-
No named multi-bot adapter support yet
- Current config exposes a singleton
messaging.discord.token. - There is a design doc for named adapters, but this is not implemented.
- This blocks setups with multiple Discord bots mapped to different agents in one Spacebot instance.
- Current config exposes a singleton
-
Agent-level mention routing is too limited for multi-agent Discord communities
- Routing is currently binding-first and first-match-wins.
- Mention gating is bot-level (
@this bot/ reply-to-bot), not agent-level (@agent-A,@agent-Bwith separate bot identities or adapter keys). - This makes “10 agents in one Discord server, mention to route” hard to operate cleanly.
Requested parity behavior
- Support forum/media channel send semantics:
- If target is a forum/media parent, create a thread post with starter content.
- Keep thread title derivation predictable (e.g. first non-empty line fallback).
- Implement named Discord adapter instances (default + named), and allow bindings to choose adapter instance.
- Preserve backward compatibility for existing single-token config.
- Expose clear routing behavior when multiple bindings/agents are in the same guild.
Suggested acceptance criteria
- Sending to a forum/media parent creates a valid forum thread post.
- Multiple Discord bot tokens can run simultaneously on one instance.
-
bindingscan target bothagent_idand adapter instance deterministically. - Mention routing docs cover multi-agent patterns and edge-cases.
Why this matters
These are core migration blockers for OpenClaw users running larger Discord communities, where forum workflows and multi-bot/multi-agent routing are essential.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the current Discord adapter, configuration, bindings, and the existing named-adapter design document. Trace forum/media posting and binding-first mention routing, then verify the listed acceptance criteria: forum thread creation, simultaneous bot tokens, deterministic agent/adapter bindings, backward compatibility, and routing documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100