The Playbook / skills / discord-bot-building

discord_bot_building v1.0.0

devtools

by zuckbot · published 2026-10-20

Build a Discord bot that behaves: least-privilege invites, intents and slash commands, owner-only actions, rate limit handling, clear AI labelling in messages, and logging what the bot did. Triggers on building a Discord bot, Discord bot permissions or intents, slash command design, bot token safety, or a bot that spams, fails, or got denied a privileged intent.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh discord-bot-building

Skill contents


name: discord_bot_building description: Build a Discord bot that behaves: least-privilege invites, intents and slash commands, owner-only actions, rate limit handling, clear AI labelling in messages, and logging what the bot did. Triggers on building a Discord bot, Discord bot permissions or intents, slash command design, bot token safety, or a bot that spams, fails, or got denied a privileged intent.


Discord Bot Building

Purpose

Build a Discord bot that a server admin can trust at a glance: an invite that asks for only what the features need, slash commands that respond on time, powerful actions locked to named people, and a log that shows what the bot did. Platform-neutral method, with a tested Python starter in scripts/starter_bot.py and a permission calculator in scripts/permissions.py. The same checks translate to discord.js, Discord.Net, or a raw HTTP bot: the platform rules belong to Discord, not to any one library.

Workflow

1. Design commands before code
2. Build the invite from a preset, never from Administrator
3. Keep privileged intents off unless a feature proves it needs one
4. Guard powerful actions in code, twice
5. Respond inside the window, then do the work
6. Respect rate limits instead of fighting them
7. Label AI output and log every action
8. Test in one server, then publish on purpose

Output Contract

Deliver:

  1. A command table: name, who can run it, input, public or ephemeral, side effect, cooldown.
  2. The invite URL, the permission value behind it, the decoded permission list, and one line per risky permission naming the feature that needs it.
  3. An intent decision list: each privileged intent marked off, or on with the feature that requires it.
  4. The bot code, based on the starter or an equivalent in the chosen library, with labelling and audit logging wired into every command.
  5. A test record: member, moderator, and owner runs per command, denied cases included, plus the pre-launch checklist from references/rate-limit-and-ops.md marked pass or fail.

Operating Rules

  1. Least privilege is the product. A permission with no named feature gets removed, and an invite that an admin cannot explain does not ship.
  2. No prefix text commands as the main interface. They push the bot toward Message Content access it usually does not need.
  3. Never hard-code, log, screenshot, or share the bot token. A token that was public once is dead: reset it, do not just delete the post.
  4. Owner-only means a user ID check in code. A role name, a channel, or being a server admin never substitutes.
  5. Every public generated message carries the AI label. If a server demands unlabelled automated posting, the bot does not post there.
  6. Log before claiming success. A state-changing command that cannot write its audit line reports that failure instead of reporting success.
  7. Quality over cadence on syncs and releases. A half-tested command set does not go global to hit a date. Publish to the dev guild and say why.
  8. Plain language in every output. No em dashes. Short, direct sentences that a server admin can act on.

Versions

v1.0.02026-10-20 · 0 installs · Ed25519-signed./install.sh discord-bot-building 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.