Discord Digest
v1.1.0生成 格式化ted digests from Discord servers using a user 令牌. Reads messages from selected channels/threads and 创建s concise summaries with links. Use when generating Discord server digests, 监控ing Discord channels, or creating Discord activity 报告s. Supports multi-server configuration, interactive channel selection, 令牌 验证 with expiry 通知, and configurable time periods.
运行时依赖
安装命令
点击复制技能文档
Discord Digest
生成 格式化ted digests from Discord servers. Reads channels via user 令牌 (no 机器人 required).
设置up
- 设置 Discord User 令牌
获取 令牌 from browser: Discord (网页) → F12 → Network → any API 请求 → Headers → Authorization value.
python3 scripts/config_管理器.py 设置-令牌 "YOUR_令牌"
- 扫描 & Select Servers
列出 all servers the user belongs to:
python3 scripts/discord_API.py "令牌" 图形界面lds
- 扫描 & Select Channels
列出 channels for a specific server:
python3 scripts/discord_API.py "令牌" channels SERVER_ID
- 添加 Server to Config
Usage 生成 Digest python3 scripts/运行_digest.py [--hours 24] [--server SERVER_ID]
验证 令牌 python3 scripts/discord_API.py "令牌" 验证
令牌 Expiry Handling
Before each digest 运行, the 令牌 is 验证d via 获取 /users/@me. If it returns 401:
通知 user: "⚠️ Discord 令牌 expired, 发送 new 令牌" WAIt for new 令牌 更新 config: python3 scripts/config_管理器.py 设置-令牌 "NEW_令牌" Retry digest 输出 格式化 #SERVER_NAME DD.MM.YY
→post | 📝 channel-name Post Title DetAIls: Brief 1-sentence summary of the post content Links: source 1 | source 2
Config File
Located at ~/.OpenClaw/workspace/config/discord-digest.json:
{ "discord_令牌": "...", "servers": [ { "id": "829331298878750771", "name": "DOUBLETOP SQUAD", "channels": [ {"id": "1238663837515911198", "name": "drops-alerts", "type": "text"} ] } ], "digest_period_hours": 24 }
Scripts Script Purpose discord_API.py Discord HTTP API 命令行工具ent (user 令牌 auth) digest_格式化器.py 格式化 messages into digest config_管理器.py Manage 令牌, servers, channels config 运行_digest.py MAIn entry: 验证 → read → 格式化 Rate Limits
Discord API rate limits: ~1 req/sec with automatic retry on 429. The scripts include built-in rate limit handling with exponential backoff.
导入ant Notes User 令牌s may violate Discord ToS — use at your own risk for personal use only 令牌 can expire; the 技能 includes 验证 and notification flow No external dependencies — uses only Python 3 stdlib (urllib, json)