π¦ ClawHub
Discord Context
by @demitrim
Sync and cache per-thread context for Discord Forum channels. Use when handling /discord-context commands to poll active threads, list cached context, inspec...
TERMINAL
clawhub install discord-contextπ About This Skill
name: discord-context description: Sync and cache per-thread context for Discord Forum channels. Use when handling /discord-context commands to poll active threads, list cached context, inspect a thread cache, or link a thread to a memory QMD file. user-invocable: true metadata: {"openclaw":{"requires":{"bins":["node"],"env":["DISCORD_TOKEN"]}}}
discord-context
Run node {baseDir}/scripts/discord-context-cli.js .
Commands
poll [--guild ] [--forum ] [--workspace ] DISCORD_TOKEN plus guild/forum IDs (flags or env vars).context [threadId] [--workspace ] [--json] threadId: list cached threads.
- With threadId: print cached context and metadata for one thread.link [--workspace ] memory/.md and refresh cached context text.Environment
DISCORD_TOKEN (required for poll)DISCORD_GUILD_ID (default guild id for poll)DISCORD_FORUM_CHANNEL_ID (default forum id for poll)OPENCLAW_WORKSPACE (defaults to ~/.openclaw/workspace)Security Rules
[a-zA-Z0-9_-]+ for qmdName.memory/ tree.Paths
memory/discord-cache/thread-.json memory/discord-cache/thread--context.txt memory/*.md