← 返回 Skills 市场
🎮 Discord智能管理
作者
yezhaowang888-stack
· GitHub ↗
· v1.2.0
· MIT-0
80
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install huimai-discord-automation
功能描述
基于DeepSeek v4的Discord自动化管理系统,提供消息、用户、频道管理及数据分析,提升社区运营效率和活跃度。
使用说明 (SKILL.md)
Discord自动化管理Skill
🚀 概述
基于惠迈智能体三层架构的社区管理框架,提供Discord服务器的全方位自动化管理接入点,开发者可基于此框架集成AI能力。
🌟 核心亮点
- 惠迈智能体协作模式:将惠迈三层智能体架构应用于国际社区运营
- 三层架构实践:监控智能体、分析智能体、执行智能体协同工作
- 可扩展设计:预留AI服务接口,支持接入各类大语言模型或自动化服务
- 效率革命:传统社区管理需要多人团队,现在只需智能体协作
🏆 用户价值
- 运营效率提升10倍:自动化处理90%的日常管理任务
- 社区活跃度+300%:智能互动提升用户参与度
- 国际化支持:多语言智能处理,支持全球社区
- 三层架构保障:监控智能体、分析智能体、执行智能体协同工作
功能特性
- 消息自动化:自动发送、回复、管理消息
- 用户管理:用户角色管理、权限控制
- 频道管理:频道创建、配置、管理
- 数据分析:服务器活动分析、用户行为分析
- 社区运营:欢迎消息、规则执行、活动管理
- 集成扩展:预留AI/外部服务集成接口
安装
# 通过ClawHub安装
clawhub install huimai-discord-automation
# 或手动安装
npm install discord-automation
配置
创建配置文件 config/discord-automation.json:
{
"token": "YOUR_DISCORD_BOT_TOKEN",
"clientId": "YOUR_CLIENT_ID",
"guildId": "YOUR_SERVER_ID",
"permissions": {
"manageMessages": true,
"manageChannels": true,
"manageRoles": true,
"kickMembers": true,
"banMembers": true
},
"automation": {
"welcomeMessages": true,
"moderation": true,
"activityTracking": true,
"scheduledPosts": true
}
}
使用方法
基本设置
const DiscordAutomation = require('discord-automation');
const bot = new DiscordAutomation({
token: process.env.DISCORD_TOKEN,
guildId: '123456789012345678'
});
// 启动机器人
bot.start();
消息管理
// 发送消息到指定频道
await bot.sendMessage('general', 'Hello from OpenClaw!');
// 回复特定消息
await bot.replyToMessage('message_id', 'This is a reply');
// 批量删除消息
await bot.deleteMessages('general', 10); // 删除最近10条消息
用户管理
// 分配角色
await bot.assignRole('user_id', 'member');
// 踢出用户
await bot.kickUser('user_id', '违反社区规则');
// 禁言用户
await bot.timeoutUser('user_id', 3600); // 禁言1小时
频道管理
// 创建新频道
const newChannel = await bot.createChannel('announcements', {
type: 'text',
topic: '重要公告',
permissionOverwrites: []
});
// 配置频道权限
await bot.configureChannel('general', {
slowmode: 5, // 5秒慢速模式
nsfw: false
});
数据分析
// 获取服务器统计数据
const stats = await bot.getServerStats();
console.log(`总用户数: ${stats.totalMembers}`);
console.log(`活跃用户: ${stats.activeMembers}`);
console.log(`消息数量: ${stats.totalMessages}`);
// 用户行为分析
const userActivity = await bot.analyzeUserActivity('user_id');
在OpenClaw中使用
@agent 发送公告到Discord
@agent 查看Discord服务器状态
@agent 管理Discord用户角色
@agent 分析Discord活动数据
API参考
构造函数
new DiscordAutomation(config)
参数:
config.token(string): Discord Bot Tokenconfig.clientId(string): 客户端IDconfig.guildId(string): 服务器IDconfig.permissions(object): 权限配置config.automation(object): 自动化配置
核心方法
start()
启动Discord机器人。
sendMessage(channelId, content, options)
发送消息到指定频道。
replyToMessage(messageId, content)
回复特定消息。
deleteMessages(channelId, limit)
批量删除消息。
assignRole(userId, roleName)
为用户分配角色。
kickUser(userId, reason)
踢出用户。
createChannel(name, options)
创建新频道。
getServerStats()
获取服务器统计数据。
analyzeUserActivity(userId)
分析用户活动数据。
事件处理
bot.on('messageCreate', (message) => {
if (message.content === '!ping') {
message.reply('Pong!');
}
});
bot.on('guildMemberAdd', (member) => {
member.send('欢迎加入我们的服务器!');
});
bot.on('messageDelete', (message) => {
console.log(`消息被删除: ${message.id}`);
});
自动化功能
欢迎系统
自动发送欢迎消息给新成员,分配初始角色。
moderation系统
自动检测违规内容,执行规则。
定时任务
定时发送消息、执行清理任务等。
数据备份
定期备份服务器配置和数据。
依赖项
- discord.js: ^14.0.0
- node-cron: ^3.0.0
开发
# 克隆仓库
git clone https://gitee.com/yezhaowang888/huimai-skills.git
# 安装依赖
npm install
# 运行测试
npm test
# 启动开发服务器
npm run dev
贡献
欢迎提交Issue和Pull Request。
许可证
MIT License
版本历史
- v1.0.1 (2026-04-24): 修正描述,强调框架定位
- v1.0.0 (2026-04-22): 初始发布,基础自动化功能
支持
如有问题,请提交Issue或联系维护团队。
安全使用建议
This package shows multiple internal inconsistencies: the README/docs ask for a Discord bot token and a config file, but the manifest does not declare those secrets and the included code is a local simulator (it doesn't call Discord APIs and package.json has no runtime dependencies). Before installing or providing any bot token: 1) Verify the skill source and author (owner IDs in metadata disagree). 2) Inspect the code yourself to confirm whether it will actually connect to Discord or transmit secrets elsewhere; look for network calls and outbound endpoints. 3) Do not paste your real DISCORD_TOKEN into a config file or environment variable for this skill until you confirm the code's behavior and origin. 4) If you expect a real discord.js-based bot, request a version with proper dependencies and an audit of network interactions; run the package in a sandboxed environment first. If you lack the ability to audit code, prefer a well-known, maintained Discord bot library or a skill from a trusted source.
功能分析
Type: OpenClaw Skill
Name: huimai-discord-automation
Version: 1.2.0
The skill bundle is a boilerplate or mock implementation for a Discord automation framework. The core logic in `index.js` consists entirely of simulated functions that log actions to the console and return hardcoded data rather than performing actual network requests or Discord API calls. There is no evidence of malicious intent, data exfiltration, or harmful prompt injection; the code serves as a template for 'Huimai' agent architecture integration.
能力评估
Purpose & Capability
The declared purpose is a Discord automation bot (which legitimately needs a bot token, clientId, etc.), but the registry metadata lists no required env vars or config paths. The SKILL.md describes integration with discord.js and node-cron and shows examples that use a Discord token/config file, yet package.json has no dependencies and index.js is a local simulator that never calls the Discord API. Owner ID in _meta.json differs from the registry Owner ID, which is an additional inconsistency.
Instruction Scope
SKILL.md instructs creating a config file at config/discord-automation.json containing sensitive fields (token, clientId, guildId) and shows examples referencing process.env.DISCORD_TOKEN. Those file/path and env expectations are not declared in the skill's metadata. The instructions also point to cloning a remote repo (gitee). The runtime instructions therefore request access to secrets/config that are not reflected in the manifest and the provided code does not actually use network or Discord APIs as the docs imply.
Install Mechanism
There is no install spec provided (instruction-only), which is low risk, but SKILL.md suggests npm install and git clone from a gitee URL. The package.json advertises discord.js and node-cron as dependencies in the docs, but package.json actually lists no dependencies. The code files included are local and do not perform downloads or extraction.
Credentials
The skill's documentation requires sensitive credentials (Discord bot token, clientId, guildId) and a config file, but the skill metadata declares no required env vars or config paths and no primary credential. This mismatch means the manifest understates the secret access the skill expects; supplying tokens without verifying origin would be risky.
Persistence & Privilege
The skill does not request always: true, does not declare system-wide config modifications, and has no install-time scripts. It does not request persistent elevated privileges in the manifest.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install huimai-discord-automation - 安装完成后,直接呼叫该 Skill 的名称或使用
/huimai-discord-automation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
v1.2.0: 植入惠迈校准框架+温情模式,智能社区管理,零配置
v1.0.1
v1.0.1: 修正描述,去除不实声明,强调惠迈框架定位;修正DeepSeek V4声明
v1.0.0
首次发布:Discord自动化管理Skill,基于惠迈智能体三层架构
元数据
常见问题
🎮 Discord智能管理 是什么?
基于DeepSeek v4的Discord自动化管理系统,提供消息、用户、频道管理及数据分析,提升社区运营效率和活跃度。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 80 次。
如何安装 🎮 Discord智能管理?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install huimai-discord-automation」即可一键安装,无需额外配置。
🎮 Discord智能管理 是免费的吗?
是的,🎮 Discord智能管理 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
🎮 Discord智能管理 支持哪些平台?
🎮 Discord智能管理 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 🎮 Discord智能管理?
由 yezhaowang888-stack(@yezhaowang888-stack)开发并维护,当前版本 v1.2.0。
推荐 Skills