discrawl
它能做什么
这个技能教你的智能体搜索保存下来的 Discord 聊天记录。它适合想快速查找较早对话内容、不想在应用里逐条翻看的人。
适用场景
- ✓想在已存档的 Discord 服务器中查找某个话题相关讨论的时候。
- ✓在信任档案中的答案之前,需要了解档案有多新的时候。
- ✓想统计某个频道最近几天消息数量或生成摘要的时候。
技能链接
https://github.com/openclaw/openclaw/blob/main/.agents/skills/discrawl/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在我们的 Discord 档案中搜索上周大家关于价格调整的所有讨论。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体对已保存的档案运行 discrawl 命令行工具,分小批次读取结果,并报告日期、频道以及任何覆盖缺口。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Discrawl
Use local Discord archives first. For recent/current questions, check
discrawl status --json; use discrawl doctor for source/config readiness.
Refresh only when stale, missing the requested scope, or explicitly requested.
discrawl sync --source wiretap # local Discord Desktop artifacts
discrawl sync # configured source; bot API requires credentials
Use --full only for deliberate historical backfills. Do not interrupt another
archive writer to resolve a busy/locked database. Resolve configured paths
instead of assuming default macOS, XDG, or legacy locations.
Read Bounded Slices
DISCRAWL_NO_AUTO_UPDATE=1 discrawl search --limit 20 "query"
discrawl messages --channel '<channel>' --days 7 --all
discrawl dms --last 20
DISCRAWL_NO_AUTO_UPDATE=1 discrawl --json sql "select count(*) as messages from messages;"
DISCRAWL_NO_AUTO_UPDATE=1 suppresses git-share updates during read smokes.
discrawl sql is read-only by default and accepts SQL arguments or stdin. Use
it for exact counts/joins when normal reads are too coarse; never use
--unsafe --confirm without an explicitly requested and reviewed database
mutation. Consult subcommand help for filters. Report absolute date spans,
channel/DM names, counts, freshness, and source gaps.
Source Boundaries
Desktop wiretap reads local artifacts; it must not extract credentials, use
user tokens, call Discord as the user, or write Discord application storage.
Bot sync needs configured bot credentials; never infer availability. Desktop
DMs are local-only, not part of the published Git snapshot. Git-share snapshots
must exclude secrets and @me DM rows.
For implementation work or a genuinely missing CLI feature, verify the checkout
remote is openclaw/discrawl and follow its instructions. Do not assume a
machine-specific historical checkout path.
ClawSweeper Sandbox
Use the sandbox reader only:
discrawl-sandbox search --limit 20 "query"
discrawl-sandbox messages --channel clawtributors --days 7 --all
discrawl-sandbox status --json
This reader imports https://github.com/openclaw/discord-store.git into
/root/clawsweeper-sandbox-workspace/.discrawl/discrawl.db with
discord.token_source = "none". The published Git snapshot is public-channel
filtered; do not use /root/.discrawl/config.toml or the rich writer DB from
sandboxed public Discord sessions.
常见问题
智能体搜索时需要访问 Discord 吗?
搜索使用本地档案。从 Discord 刷新数据需要已配置的来源或凭证;智能体只在被要求或档案过期时才刷新。
智能体能修改或删除档案中的消息吗?
默认不能。除非有人明确提出请求并经过审核,否则其数据库查询都是只读的。
它怎么知道档案是否是最新的?
它会先检查同步状态,然后报告已保存消息的新旧程度。
详情
作者的原始描述
Discord archive: search, sync freshness, DMs, summaries, TUI, repo/release work.
repo: openclaw/openclaw
热度
- GitHub 星标
- 394k
- 排名
- #3
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
discord-user-post
394k让你的智能体通过 Discord 桌面应用,以你的身份发送你已批准的消息,并在发送前确认具体频道。
gitcrawl
394k让你的智能体搜索已保存的 GitHub 议题和拉取请求档案,将重复内容归类,并在 GitHub 上核实它们的当前状态。
graincrawl
394k让你的智能体搜索已保存的 Granola 会议记录和转写稿,查看它们的新旧程度,并统计某段时间内的数量。
notcrawl
394k让你的智能体搜索已保存的 Notion 工作区副本,查找页面和数据库,并把页面导出为 Markdown 文件。