Rechercher

PythonReactSEOPDF
OpenClaw

discord-context

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.

demitrim0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install demitrim/discord-context

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

discord-context

Run node {baseDir}/scripts/discord-context-cli.js <command> ....

Commands

  • poll [--guild <id>] [--forum <id>] [--workspace <path>]

    • Pull active threads from Discord and refresh cache for new/updated threads.
    • Requires DISCORD_TOKEN plus guild/forum IDs (flags or env vars).
  • context [threadId] [--workspace <path>] [--json]

    • Without threadId: list cached threads.
    • With threadId: print cached context and metadata for one thread.
  • link <threadId> <qmdName> [--workspace <path>]

    • Link a thread to memory/<qmdName>.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

  • Never hardcode Discord tokens.
  • Accept only numeric thread/guild/forum IDs.
  • Accept only [a-zA-Z0-9_-]+ for qmdName.
  • Keep all reads/writes inside the workspace memory/ tree.

Paths

  • Cache metadata: memory/discord-cache/thread-<id>.json
  • Cache text: memory/discord-cache/thread-<id>-context.txt
  • Source context files: memory/*.md

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/demitrim/discord-context
Version
—
Commit
982748e9ee238e3f6b1cca75b5596f479f84f443
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

Contenu extrait

SKILL.md
# discord-context

Run `node {baseDir}/scripts/discord-context-cli.js <command> ...`.

## Commands

- `poll [--guild <id>] [--forum <id>] [--workspace <path>]`
  - Pull active threads from Discord and refresh cache for new/updated threads.
  - Requires `DISCORD_TOKEN` plus guild/forum IDs (flags or env vars).

- `context [threadId] [--workspace <path>] [--json]`
  - Without `threadId`: list cached threads.
  - With `threadId`: print cached context and metadata for one thread.

- `link <threadId> <qmdName> [--workspace <path>]`
  - Link a thread to `memory/<qmdName>.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

- Never hardcode Discord tokens.
- Accept only numeric thread/guild/forum IDs.
- Accept only `[a-zA-Z0-9_-]+` for `qmdName`.
- Keep all reads/writes inside the workspace `memory/` tree.

## Paths

- Cache metadata: `memory/discord-cache/thread-<id>.json`
- Cache text: `memory/discord-cache/thread-<id>-context.txt`
- Source context files: `memory/*.md`

Skills associés

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.