返回顶部
d

discord-contextDiscord上下文同步

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.1
安全检测
已通过
941
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

discord-context

discord-context

运行 node {baseDir}/scripts/discord-context-cli.js ...。

命令

  • - poll [--guild ] [--forum ] [--workspace ]
- 从 Discord 拉取活跃线程,并刷新新增/更新线程的缓存。 - 需要 DISCORD_TOKEN 以及服务器/论坛 ID(可通过标志或环境变量提供)。
  • - context [threadId] [--workspace ] [--json]
- 不带 threadId:列出缓存的线程。 - 带 threadId:打印单个线程的缓存上下文和元数据。
  • - link [--workspace ]
- 将线程链接到 memory/.md,并刷新缓存的上下文文本。

环境变量

  • - DISCORDTOKEN(poll 命令必需)
  • DISCORDGUILDID(poll 命令的默认服务器 ID)
  • DISCORDFORUMCHANNELID(poll 命令的默认论坛频道 ID)
  • OPENCLAW_WORKSPACE(默认为 ~/.openclaw/workspace)

安全规则

  • - 切勿硬编码 Discord 令牌。
  • 仅接受数字格式的线程/服务器/论坛 ID。
  • qmdName 仅接受 [a-zA-Z0-9_-]+ 格式。
  • 所有读写操作必须限制在工作区 memory/ 目录树内。

路径

  • - 缓存元数据:memory/discord-cache/thread-.json
  • 缓存文本:memory/discord-cache/thread--context.txt
  • 源上下文文件:memory/*.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 discord-context-1776420000 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 discord-context-1776420000 技能

通过命令行安装

skillhub install discord-context-1776420000

下载

⬇ 下载 discord-context v0.1.1(免费)

文件大小: 5.78 KB | 发布时间: 2026-4-17 18:47

v0.1.1 最新 2026-4-17 18:47
- No file changes detected; this is a metadata-only version update.
- No new features or bug fixes included in this release.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部