SuperAPI AI 工具集

discord-admin-bot

办公与效率

查看项目

更新于 10-16 01:20

技能介绍

用途:在 TraderDaddy-Pro Discord 中发送和读取消息,默认频道为 #admin-discussion,可通过频道名或原始 ID 指定其他频道。

主要能力:发送消息(scripts/send.py);读取最近消息(scripts/read.py,可加 --limit、--format full);发现机器人所在的服务器与文本频道并写入 discord_config.json(scripts/discover.py)。

用法示例:python scripts/send.py "Your message here";python scripts/read.py --limit 20;python scripts/discover.py。发送时可加 --channel <name> 或 --channel-id <id>。

限制与规则:令牌不得打印,按顺序从 $DISCORD_BOT_TOKEN、技能文件夹的 discord.txt、当前目录及向上查找的 discord.txt 加载;不得提交 discord.txt 或 discord_config.json。删除消息等破坏性操作需用户明确指令,发送和读取无需确认。遵循 Discord 速率限制,429 时按 Retry-After 重试一次,再次 429 则报错。不用于自动跨频道推送,算法进出场提醒应使用现有 core/discord_notify.py webhook。需在开发者门户启用 MESSAGE CONTENT INTENT,机器人需具备查看频道、发送消息、读取消息历史权限。错误码:401 令牌错误,403 权限不足,404 频道 ID 失效需重跑 discover.py。