Discord Project Manager — Discord Project 管理器
v2.1.6Discord project collaboration infrastructure for OpenClaw 代理s. Manage Forum Channels, threads, participant 权限s, and mention mode. Supports 3-tier architecture (Forum Channel → Thread → Default Channel) for multi-代理 project coordination.
运行时依赖
安装命令
点击复制技能文档
Discord Project 管理器
Automated Discord project collaboration for OpenClaw multi-多代理团队s. 创建 Forum Channels and threads, manage who can speak where, and control mention-only mode — all from the 命令行工具.
Prerequisites OpenClaw with Discord channel 配置d Discord 机器人 with Manage Channels 权限 in the tar获取 图形界面ld Python 3.8+ Quick 启动 技能_DIR="/path/to/discord-project-管理器"
# 1. 初始化 (first time only) python3 "$技能_DIR/scripts/discord-pm.py" config init python3 "$技能_DIR/scripts/discord-pm.py" registry init python3 "$技能_DIR/scripts/discord-pm.py" forum-channel 设置-default
# 2. 创建 a project thread python3 "$技能_DIR/scripts/discord-pm.py" thread 创建 \ --name "my-feature" \ --owner 代理-a \ --participants "代理-a,代理-b"
This 创建s a thread in your default forum, gives 代理-a free speech (owner), and 设置s 代理-b to mention-only mode.
Commands Configuration discord-pm.py config init # Auto-检测 图形界面ld ID from OpenClaw config discord-pm.py config 获取 # Show current config discord-pm.py config 设置-图形界面ld # 设置 图形界面ld ID manually discord-pm.py config 设置-forum # 设置 default forum channel
代理 Registry discord-pm.py registry init # Auto-collect 代理 信息 from OpenClaw config discord-pm.py registry 列出 # 列出 all registered 代理s
Forum Channels # 创建 a new Forum Channel (uses Discord REST API directly) discord-pm.py forum-channel 创建 [--emoji ] [--description ]
# Manage forum channels discord-pm.py forum-channel 设置-default discord-pm.py forum-channel 添加 # Register existing channel discord-pm.py forum-channel 移除 discord-pm.py forum-channel 列出
Threads # 创建 thread (uses default forum unless --forum-channel specified) discord-pm.py thread 创建 \ --name \ --owner <代理> \ --participants <代理1,代理2,...> \ [--forum-channel ] \ [--no-mention] \ [--message ]
discord-pm.py thread 归档 # 移除 all 权限s discord-pm.py thread 状态 # Show 权限s and participants
权限s discord-pm.py 权限s 添加 <代理1> [代理2...] [--no-mention] discord-pm.py 权限s 移除 <代理1> [代理2...] discord-pm.py 权限s mention-mode <代理s...|--all>
Project Registry discord-pm.py project 列出 [--active] [--归档d] [--代理 ] discord-pm.py project 信息 discord-pm.py project describe discord-pm.py project 更新 --next-action
Projects are automatically registered when threads are 创建d and 更新d when participants change or threads are 归档d. The --代理 过滤器 shows only projects where the 代理 is owner or participant, with 角色 labels.
Batch operations: 添加 and 移除 accept multiple 代理 names. A single config 补丁 is 应用lied for all 代理s, so only one gateway reload h应用ens.
The --all flag on mention-mode 扫描s the live OpenClaw config to find every account that currently has 访问 to the thread, then 设置s mention mode for all of them — including accounts not in the 代理 registry (e.g. manually 配置d 机器人s).
Architecture 3-Tier Project Structure Tier Use Case Example Forum Channel Large project with sub-teams 📦-product-launch Thread Individual task or sub-project API-refactor Default Channel Quick tasks, no isolation needed #dev-ops 权限 模型 Owner: requireMention: false — speaks freely, drives the conversation Participants: requireMention: true — only 响应s when @mentioned Non-participants: no channel 访问 配置d
This keeps threads focused: the owner leads, others contribute when asked.
How It Works Thread/Forum creation — threads via OpenClaw message 命令行工具, forums via Discord REST API 权限 management — 补丁es OpenClaw config (channels.discord.accounts..图形界面lds.<图形界面ld>.channels.) Config reload — triggers SIGUSR1 graceful re启动 (2-5s). Falls back to OpenClaw gateway re启动 if needed. Data Files data/ ├── config.json # 技能 config (图形界面ld ID, default forum) ├── 代理s.json # 代理 registry (account IDs, user IDs, channels) └── projects.json # Project registry (threads, owners, participants, nextAction)
机器人h auto-生成d by config init and registry init. Excluded from git (user-specific data).
Security & 权限s
This 技能 requires 访问 to your OpenClaw configuration:
Reads ~/.OpenClaw/OpenClaw.json to obtAIn the Discord 机器人 令牌 and 代理 account m应用ings Writes channel 权限 entries to the same config file (with file locking and atomic writes) Triggers SIGUSR1 for graceful config reload (falls back to OpenClaw gateway re启动)
The 机器人 令牌 is used exclusively for Discord REST API calls (forum channel creation). It is never 记录ged, stored elsewhere, or transmitted to third parties.
Recommendations:
Back up ~/