discord-watcher
Use this skill to keep up to date with specific Discord channels by fetching recent messages. Requires DISCORD_TOKEN.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- discord-watcher
- description
- Use this skill to keep up to date with specific Discord channels by fetching recent messages. Requires DISCORD_TOKEN.
02 资源文件 4
- 参考文档_meta.json284 B
- 其他.gitignore235 B
- 参考文档README.md298 B
- 脚本update.sh2.0 KB
03 SKILL.md 正文
Discord Watcher
This skill uses DiscordChatExporter to fetch recent messages from ALL accessible Discord channels.
Prerequisites
- DISCORD_TOKEN: Must be set in the environment or passed to the script.
- DiscordChatExporter (CLI): Must be installed in a
dcesubdirectory.
Installation
-
Download the CLI version of DiscordChatExporter from GitHub: https://github.com/Tyrrrz/DiscordChatExporter/releases (Look for
DiscordChatExporter.Cli.linux-x64.zipor your OS equivalent) -
Extract it to a
dcefolder inside this skill's directory:mkdir -p skills/discord-watcher/dce unzip DiscordChatExporter.Cli.linux-x64.zip -d skills/discord-watcher/dce chmod +x skills/discord-watcher/dce/DiscordChatExporter.Cli
Usage
Run the update script to fetch messages from the last 24 hours across all channels:
./skills/discord-watcher/update.sh [TOKEN]
The script can be run from any directory (it auto-detects its location).
This will:
- Create a timestamped directory in
exports/updates/. - Export all new messages (last 24h) from every channel you can see.
- Save them as plain text files organized by server and category.
Token retrieval (browser method)
If you need help obtaining DISCORD_TOKEN from a logged-in browser session, the following in-page technique (run from a page context where script evaluation is allowed) reliably extracts the token from localStorage using an injected iframe. Treat the token as a secret once retrieved.
JavaScript snippet (run in the page context via an automation tool that can evaluate page scripts):
// Inject a hidden iframe and read its localStorage 'token' key
(() => {
try {
const iframe = document.createElement('iframe');
iframe.style.display = 'none';
document.documentElement.appendChild(iframe);
const token = iframe.contentWindow.localStorage.getItem('token');
iframe.remove();
return {ok: !!token, method: 'iframe', token};
} catch (e) {
return {ok: false, error: e.toString()};
}
})();
Notes and alternatives:
- Some automation contexts cannot access page localStorage directly; the iframe technique often bypasses that limitation.
- An alternative is the "webpack chunk" method to locate Discord's internal token getter; use with care.
- Never commit tokens to source control. Store them in a .env file or environment variable instead.
Automation
To keep updated automatically, you can add a HEARTBEAT.md entry:
- [ ] Every 6 hours: Run `skills/discord-watcher/update.sh` and summarize any new important discussions in `memory/discord-news.md`.
Search & Indexing (Recommended)
The exported text files are perfect for indexing with qmd.
-
Create a collection:
qmd collection add exports/updates --name discord-logs --mask "**/*.txt"Note: Ensure you use the
--mask "**/*.txt"flag as the exporter saves plain text files. -
Update index:
qmd update -
Search:
qmd search "query"
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.