Discord: add slash command handling#94
Closed
thewilloftheshadow wants to merge 2 commits intoopenclaw:mainfrom
Closed
Discord: add slash command handling#94thewilloftheshadow wants to merge 2 commits intoopenclaw:mainfrom
thewilloftheshadow wants to merge 2 commits intoopenclaw:mainfrom
Conversation
Contributor
|
Closing PR to merge locally (fork branch not writable). Changes cherry-picked to main. |
dgarson
referenced
this pull request
in dgarson/clawdbot
Feb 7, 2026
chore: better logging truncation
slathrop
referenced
this pull request
in slathrop/openclaw-js
Feb 11, 2026
Tasks completed: 2/2 - Port cron scheduler reliability + store hardening (commit #46) - Port cron docs param name fix (commit #94) SUMMARY: .planning/phases/16-gateway-cron-ios/16-07-SUMMARY.md
dgarson
referenced
this pull request
in dgarson/clawdbot
Feb 22, 2026
CyberSpencer
added a commit
to CyberSpencer/openclaw
that referenced
this pull request
Mar 19, 2026
…/docker-images-4272f1b9be chore(deps): bump the docker-images group with 2 updates
zhyongrui
added a commit
to zhyongrui/openclaw
that referenced
this pull request
Mar 20, 2026
0x666c6f
added a commit
to 0x666c6f/openclaw
that referenced
this pull request
Mar 26, 2026
…dings (openclaw#94) * fix(sre:PLA-899): refresh thread context and stop handling * fix(sre): address PR review findings * fix(sre): address follow-up PR comments * fix(sre): tighten slack thread abort followups * docs(sre): clarify incident thread abort boundary * fix(sre): refine incident thread abort controls * docs(sre): clarify thread refresh safeguards * fix(sre:PLA-902): improve bot response quality from thread review findings Address all quality gaps identified in #bug-report thread review (Curator App V2 allocation input, 2026-03-17): - Add 11 new anti-pattern phrases to Response Discipline blocklist - Add Bad Example 2 (24 messages for bug investigation + PR) - Add content gate anti-patterns to SKILL.md and HEARTBEAT.md - Add meta-response handling rule (fold capability answers into incident format) - Add bold formatting self-check with full label list to all three config surfaces (SKILL.md, HEARTBEAT.md, openclaw.json) - Add Fix PR convention preflight: mandatory CLAUDE.md/CONVENTIONS.md read, monorepo shared-package awareness, correct Linear team routing - Add Linear ticket dedup check (scan thread for existing tickets before creating new ones) - Strengthen #bug-report mandatory evidence checklist (PostHog, deploy history are NOT skippable) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix(sre): allow incident abort mention bypass * fix(sre): tighten incident thread abort guards * fix(sre:PLA-902): add AGENTS.md to convention preflight file list Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix(sre:PLA-902): propagate mandatory evidence rule to SKILL.md, dedup team routing - Add mandatory evidence collection rule to SKILL.md Slack Alert Intake section (was only in #bug-report systemPrompt, missing from monitoring channels) - Consolidate duplicate Linear team routing — keep detailed version in Fix PR convention preflight, cross-reference from Linear Ticket Ops Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> * fix(sre:PLA-902): address PR review comments - SKILL.md: clarify "ONE message per task" means one per logical step, not 8 progress updates narrating the same step - abort.ts: use ReadonlySet for constant abort trigger collections - abort.test.ts: add edge case tests for multiple spaces, mixed case, and trailing punctuation in abort detection - prepare-thread-context.ts: pass oldest param for existing session refreshes to avoid full thread pagination; update inline comment scope - media.ts: add oldest param to resolveSlackThreadHistory to bound Slack API pagination for existing sessions Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Discord has the concept of User Apps, where instead of installing a bot to a server, you can install it to your user account
you dont get the full bot scope, so no reading messages, but you CAN use interactions, aka slash commands, where the user can then run the installed bot's slash commands anywhere in any server.
I talked with Clawd in the Discord server, and he said that doing a stable slash-session for this was the best idea, so I did this PR.
This PR adds support for Discord User App interactions (slash commands) so users can install Clawdis to their account and invoke it anywhere without bot read access. The gateway listens for chat input interactions via discord.js and replies ephemerally, giving “ask in place” behavior without channel snooping. Each user gets a stable slash‑session key (discord:slash:), so it behaves like another surface with shared memory but an isolated thread.
Convo start with Clawd: https://discord.com/channels/1456350064065904867/1456350065223270435/1456526329829658655