discord-bot_skill

This skill helps you automate and manage Discord servers, channels, messages, roles, and webhooks using Python with zero dependencies.
  • Python

2.6k

GitHub Stars

2

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill discord-bot

  • _meta.json279 B
  • SKILL.md5.0 KB

Overview

This skill integrates with the Discord REST API to manage servers, channels, messages, roles, members, and webhooks. It provides a lightweight, dependency-free Python CLI for common bot automation tasks, moderation, and community management. Designed for AI agents and scripting environments, it outputs JSON by default for programmatic use.

How this skill works

The tool issues authenticated REST requests to Discord using a bot token provided via the DISCORD_BOT_TOKEN environment variable. Commands cover guild inspection, channel creation and updates, message operations, role and member management, webhooks, threads, emojis, and audit log retrieval. All responses are printed to stdout as JSON, with an optional human-readable flag for formatted output.

When to use it

  • Automate routine moderation tasks (kick, ban, role assignments).
  • Send scheduled or event-based messages and embeds across channels.
  • Create, update, or audit server channels and settings programmatically.
  • Integrate external systems via webhooks to post updates into Discord.
  • Collect server or channel data for analytics or backups.

Best practices

  • Store the bot token securely and never hard-code it; use DISCORD_BOT_TOKEN env var.
  • Run commands with --human for manual inspection and default JSON for automation or pipelines.
  • Limit API request volume and respect Discord rate limits; batch operations when possible.
  • Test destructive commands (delete, ban) in a private test guild before running on production.
  • Use role and permission checks before assigning or modifying roles to avoid privilege escalation.

Example use cases

  • Deploy a bot that posts release notes and changelogs to announcement channels via send-embed or webhooks.
  • Automate onboarding by assigning roles to new users and posting welcome messages in a dedicated channel.
  • Run periodic audits of server settings and channels to produce JSON reports for compliance or backup.
  • Moderate chat by listing recent messages, reacting, editing or deleting problematic posts, and applying sanctions.
  • Create and manage ephemeral threads for event discussions and archive thread activity into external systems.

FAQ

Only DISCORD_BOT_TOKEN is required. Provide a valid bot token with appropriate permissions for intended actions.

How does output formatting work?

Commands print JSON by default for easy parsing. Add --human to produce a readable formatted summary for manual review.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
discord-bot skill by openclaw/skills | VeilStrat