discord-admin-bot
Send messages to and read messages from the TraderDaddy-Pro Discord (#admin-discussion by default) using the alpha-skills bot. Triggers on "post to discord", "send to admin-discussion", "discord post", "read discord", "what's in
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 32
- Forks
- 6
01 前言 Front Matter
- name
- discord-admin-bot
- description
- Send messages to and read messages from the TraderDaddy-Pro Discord (#admin-discussion by default) using the alpha-skills bot. Triggers on "post to discord", "send to admin-discussion", "discord post", "read discord", "what's in
02 资源文件 5
- 参考文档references/api_reference.md2.1 KB
- 脚本scripts/_client.py3.7 KB
- 脚本scripts/discover.py2.3 KB
- 脚本scripts/read.py2.6 KB
- 脚本scripts/send.py1.4 KB
03 SKILL.md 正文
Discord Admin Bot
Send and read messages in the TraderDaddy-Pro Discord using the bot token at discord.txt. Default channel is #admin-discussion; can target other channels by name once they've been discovered.
When to invoke
- "post to discord: <message>"
- "send to #admin-discussion: <message>"
- "what's been said in discord lately"
- "read last 20 messages from admin-discussion"
- Any request mentioning the TraderDaddy-Pro Discord, #admin-discussion, or "the bot"
Flow
Send a message
python scripts/send.py "Your message here"
Optional flags:
--channel <name>— target a different channel by name (must be indiscord_config.json)--channel-id <id>— target by raw ID
Read recent messages
python scripts/read.py --limit 20
Optional flags:
--channel <name>/--channel-id <id>— same as above--format full— include timestamps, authors, attachments; default is compact
Discover channels (one-time, or when channel layout changes)
python scripts/discover.py
Lists every guild the bot is in and every text channel inside, and updates discord_config.json with the resolved IDs for #admin-discussion.
Hard rules
- Never print the token. Loaded silently from
discord.txtor$DISCORD_BOT_TOKEN. - Never commit
discord.txtordiscord_config.json. The repo root.gitignoreblocks both. - Confirm before destructive ops. No deleting messages without explicit user instruction. Sending and reading are fine without confirmation; deletion requires Michael saying "delete that".
- Respect Discord rate limits. The client retries once on 429 with the
Retry-Aftervalue; if a second 429 hits, fail loud rather than spam. - No automated cross-posting. This skill is for direct user-driven sends, not webhook-style notifications. For algo entry/exit alerts, use the existing
core/discord_notify.pywebhook setup in themurrepo.
Token loading order
$DISCORD_BOT_TOKENenv var (highest priority)discord.txtin the skill folder (the install step copies it here from the alpha-skills repo)discord.txtin the current working directorydiscord.txtwalking up from CWD until a parent contains it
Setup (already done if installed via the build)
- Discord developer portal → Bot → enable MESSAGE CONTENT INTENT (required to read message bodies, not just metadata).
- Bot must be invited to the TraderDaddy-Pro guild with
View Channels+Send Messages+Read Message Historypermissions on#admin-discussion. discord_config.jsonpopulated bydiscover.py.
If sending or reading fails with 401 → token is wrong. With 403 → permissions missing. With 404 → channel ID stale, re-run discover.py.
See api_reference.md for the underlying endpoints and rate-limit handling.
04 同仓库更多 Skills
order-lifecycle-safety
Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.
order-lifecycle-safety
Idempotency, reconcile-before-retry, audit-before-forward and environment-proof preflight rules for any code or agent that places broker orders. Use when building or reviewing an order path, handling a timeout or unknown order outcome, adding client_order_id, deciding whether a retry is safe, or confirming paper vs live before sending an order.
write-a-skill
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
wireframe-sketch
A hand-drawn wireframe exploration — graph-paper background, marker / pencil tone, multiple tab labels for variants, sticky-note annotations, scribbled chart placeholders, hatched fills. Reads like a designer's whiteboard before any pixels are committed. Use when the brief asks for "wireframe", "sketch wireframe", "hand-drawn", "lo-fi", "whiteboard", "草稿", or "手绘原型".
weekly-update
Single-file horizontal-swipe slide deck for a weekly team update — shipped, in flight, blocked, metrics, asks. 6–8 slides. Use when the brief mentions "weekly update", "team update slides", "weekly status", "周报演示".
webull-openapi
Trade stocks, options, futures, crypto, and event contracts on Webull. Query real-time and historical market data. Manage accounts and positions. Supports US, HK, JP, SG, TH, MY, UK, MX, BR, EU, ZA, and AU regions with configurable risk controls.