360 Secure SkillHub
360 安全技能中心

Discord Channel Auditor

核心功能:依托OpenClaw工具,获取Discord服务器频道列表,与指南频道内容比对,检测频道新增、删除、重命名、分类变更等差异,自动删除旧指南并发布指定格式的更新内容(无变更时不操作)。典型场景:维护#how-to或#server-guide频道,可在频道操作后或每日定时执行,需Bot具备对应权限,指南需按分类+频道的规范格式编写。

npfaerber
npfaerber
热度 58.18
最近更新 2026-05-11 17:27:47
分类:自动化依赖:第三方 API应用场景:自动化脚本 / 工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add discord-channel-auditor
Metadata
name
discord-channel-auditor
description
Audit and auto-update a Discord server guide channel. Compares a reference guide message against actual channels, detects new/renamed/deleted/moved channels, and posts an updated guide. Use for keeping a

Discord Channel Auditor

Keep a server guide channel automatically synced with actual Discord channels.

Requirements

  • OpenClaw with Discord channel configured (no extra credentials needed)
  • Uses OpenClaw's built-in message tool for all Discord operations (channel-list, read, send, delete, edit)
  • Bot must have "View Channel" permission in the guild to list channels
  • Bot must have "Send Messages" + "Manage Messages" in the guide channel to post/delete

When to Use

  • Maintaining a #how-to or #server-guide channel
  • After creating, renaming, deleting, or moving channels
  • On a daily cron to catch drift

Workflow

  1. Fetch channel list using message(action=channel-list) for the guild
  2. Read current guide using message(action=read) on the guide channel
  3. Compare -- check for:
    • New channels not in the guide
    • Channels in the guide that no longer exist
    • Renamed channels (ID exists, name changed)
    • Moved channels (different category)
    • Wrong descriptions
  4. If changes found: Delete old guide messages and post fresh guide
  5. If no changes: Do nothing (save tokens)

Guide Format

Organize by category in Discord display order (by position). Use this structure:

**📥 Category Name**
- **#channel-name** -- Brief description of purpose
- **#another-channel** -- What goes here

**💼 Another Category**
- **#work-channel** -- Description

Rules

  • Keep descriptions to one line, max ~10 words
  • Match category emoji to Discord category name
  • List channels in position order within each category
  • Include a "General tips" section at the bottom
  • Post as 1-2 messages max (Discord 2000 char limit per message)
  • Skip voice channels unless specifically relevant

Cron Setup

Schedule: daily at a quiet hour (e.g., 6 AM local)
Session: isolated
Timeout: 120 seconds
Delivery: none (don't notify, just update silently)

Edge Cases

  • New category with no channels: include header, note "(empty)"
  • Private channels: skip unless the bot has access
  • Archived channels: skip