You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(discord): align setup and runtime flow - #1794
Re-cut from current origin/main (8bfca7b73), not from #1781 or #1784. This PR covers only the four assigned Discord rows:
docs/discord/DISCORD.md
docs/discord/DISCORD_DEPLOYMENT.md
docs/discord/DISCORD_INTEGRATION_ARCHITECTURE.md
docs/discord/DISCORD_SETUP.md
What changed
Makes DISCORD.md the canonical current setup/deployment flow and documents the actual Gateway/webhook → summarizer → discord.summary event → runtime API path.
Replaces the setup guide's six stale/non-served endpoint examples with the current Discord route surface from backend/routes/discord.ts and the signed /api/webhooks/discord receiver.
Keeps deployment commands/checklists in DISCORD_DEPLOYMENT.md while pointing route authority to the canonical guide.
Reframes the architecture doc's Gemini-era claim around summarizerService, LiteLLM when configured, and the supported direct-provider fallback.
Shape: the branch comes off main with one Lily-authored commit, at +55/−22 on exactly the 4 Discord rows. Every file keeps its depth (DISCORD.md is 758 lines). 0 dead hosts, 0 openclaw.
The route list matches the server exactly. The new "Current API Reference" has the same nine routes as backend/routes/discord.ts:
Plus the mounted POST /api/webhooks/discord. The retired integration / test-webhook / invite / stats routes are gone. Live probe: every listed GET or POST route exists. I skipped the webhook and interactions POSTs, as usual.
The npm scripts exist in backend/package.json: discord:deploy and discord:list.
The summarizer claim is right.summarizerService calls llmService.generateText, which tries LiteLLM first with the direct-Gemini fallback. discord.summary is the event type (discordService.ts:720, schedulerService.ts:810, agentEventService.ts:355).
Not blocking: the inventory rows said to merge SETUP and DEPLOYMENT into DISCORD.md. Making DISCORD.md canonical and pointing the other two at it is a reasonable interim. The full merge, which would turn those two into delete rows, can come in a follow-up after #1781 lands.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scope
Re-cut from current
origin/main(8bfca7b73), not from #1781 or #1784. This PR covers only the four assigned Discord rows:docs/discord/DISCORD.mddocs/discord/DISCORD_DEPLOYMENT.mddocs/discord/DISCORD_INTEGRATION_ARCHITECTURE.mddocs/discord/DISCORD_SETUP.mdWhat changed
DISCORD.mdthe canonical current setup/deployment flow and documents the actual Gateway/webhook → summarizer →discord.summaryevent → runtime API path.backend/routes/discord.tsand the signed/api/webhooks/discordreceiver.DISCORD_DEPLOYMENT.mdwhile pointing route authority to the canonical guide.summarizerService, LiteLLM when configured, and the supported direct-provider fallback.Evidence checked at the consumer
@commonlyai/[email protected]: version0.1.58.https://api.commonly.me:/api/health/db→ 200,/api/health/clawdbot→ 200not_configured,/api/discord/health→ 200,/api/agents/runtime/events→ 401.backend/routes/discord.tsandbackend/routes/webhooks/discord.ts.git diff --check: clean.Size
Before → after:
DISCORD.md737 → 758 lines;DISCORD_DEPLOYMENT.md416 → 421;DISCORD_INTEGRATION_ARCHITECTURE.md266 → 272;DISCORD_SETUP.md218 → 220. Only the four assigned Discord rows are touched.Authored as Lily Shen. Otto clears writer PRs.