返回顶部
d

discord-botDiscord机器人

Discord Bot API integration — manage servers, channels, messages, roles, members, and webhooks via the Discord REST API. Send messages, manage server settings, moderate users, create channels, and handle role assignments. Built for AI agents — Python stdlib only, zero dependencies. Use for Discord server management, bot automation, community management, message sending, moderation, and webhook integrations.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
565
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

discord-bot

🤖 Discord 机器人

Discord 机器人 API 集成 — 通过 Discord REST API 管理服务器、频道、消息、角色、成员和 Webhook。

功能特性

  • - 发送消息 — 向任意频道发送文本、嵌入消息和文件
  • 频道管理 — 创建、更新、删除频道
  • 服务器信息 — 服务器详情、设置和统计数据
  • 成员管理 — 列出、踢出、封禁、分配角色
  • 角色管理 — 创建、更新、分配角色
  • 消息操作 — 发送、编辑、删除、回应、置顶
  • Webhook 管理 — 创建并通过 Webhook 发送消息
  • 线程管理 — 创建和管理线程
  • 表情管理 — 列出和管理自定义表情
  • 审计日志 — 查看服务器审计事件

环境要求

变量必需描述
DISCORDBOTTOKENDiscord 机器人的 API 密钥/令牌

快速开始

bash

列出机器人的服务器


python3 {baseDir}/scripts/discord-bot.py guilds

bash

获取服务器详情


python3 {baseDir}/scripts/discord-bot.py guild-get 123456789

bash

列出服务器频道


python3 {baseDir}/scripts/discord-bot.py channels --guild 123456789

bash

创建频道


python3 {baseDir}/scripts/discord-bot.py channel-create --guild 123456789 general-chat --type text

命令

guilds

列出机器人的服务器。 bash python3 {baseDir}/scripts/discord-bot.py guilds

guild-get

获取服务器详情。 bash python3 {baseDir}/scripts/discord-bot.py guild-get 123456789

channels

列出服务器频道。 bash python3 {baseDir}/scripts/discord-bot.py channels --guild 123456789

channel-create

创建频道。 bash python3 {baseDir}/scripts/discord-bot.py channel-create --guild 123456789 general-chat --type text

channel-update

更新频道。 bash python3 {baseDir}/scripts/discord-bot.py channel-update 987654321 {name:announcements,topic:Important updates}

send

发送消息。 bash python3 {baseDir}/scripts/discord-bot.py send --channel 987654321 Hello from the bot!

send-embed

发送嵌入消息。 bash python3 {baseDir}/scripts/discord-bot.py send-embed --channel 987654321 {title:Update,description:New feature released,color:5814783}

messages

列出频道消息。 bash python3 {baseDir}/scripts/discord-bot.py messages --channel 987654321 --limit 20

message-edit

编辑消息。 bash python3 {baseDir}/scripts/discord-bot.py message-edit --channel 987654321 --message 111222333 Updated text

message-delete

删除消息。 bash python3 {baseDir}/scripts/discord-bot.py message-delete --channel 987654321 --message 111222333

react

添加消息回应。 bash python3 {baseDir}/scripts/discord-bot.py react --channel 987654321 --message 111222333 --emoji 👍

members

列出服务器成员。 bash python3 {baseDir}/scripts/discord-bot.py members --guild 123456789 --limit 50

roles

列出服务器角色。 bash python3 {baseDir}/scripts/discord-bot.py roles --guild 123456789

role-assign

为成员分配角色。 bash python3 {baseDir}/scripts/discord-bot.py role-assign --guild 123456789 --user 444555666 --role 777888999

webhooks

列出频道 Webhook。 bash python3 {baseDir}/scripts/discord-bot.py webhooks --channel 987654321

输出格式

所有命令默认输出 JSON 格式。添加 --human 参数可获取可读性更好的格式化输出。

bash

JSON(默认,适用于程序化使用)


python3 {baseDir}/scripts/discord-bot.py guilds --limit 5

人类可读格式

python3 {baseDir}/scripts/discord-bot.py guilds --limit 5 --human

脚本参考

脚本描述
{baseDir}/scripts/discord-bot.py主 CLI — 所有 Discord 机器人操作

数据政策

本技能绝不本地存储数据。所有请求直接发送至 Discord 机器人 API,结果返回至标准输出。您的数据保留在 Discord 机器人服务器上。

致谢


M. Abidi 构建 | agxntsix.ai YouTube | GitHub 属于 AgxntSix 技能套件 的一部分,适用于 OpenClaw 代理。

📅 需要帮助为您的企业设置 OpenClaw? 预约免费咨询

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 discord-bot-1776025741 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 discord-bot-1776025741 技能

通过命令行安装

skillhub install discord-bot-1776025741

下载

⬇ 下载 discord-bot v1.0.0(免费)

文件大小: 4.41 KB | 发布时间: 2026-4-13 10:03

v1.0.0 最新 2026-4-13 10:03
- Initial release: Discord Bot API integration for server management, moderation, and automation via Python stdlib (no external dependencies).
- Supports managing servers, channels, messages, roles, members, and webhooks.
- Includes commands for sending messages, managing roles, moderating users, and handling server settings.
- Outputs JSON by default, with optional human-readable formatting.
- Requires only the DISCORD_BOT_TOKEN environment variable.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部