# Discord Server Safety Kit (free AI agent kit from Bot Pantry)

Canonical page: https://botpantry.com/kits/discord-safety
Free download (.zip, no sign-up): https://botpantry.com/api/download?kit=discord-safety
For: Gamers running Discord servers
Setup time: 60-90 min (verified by Kit Inspector)
Works with: Discord AutoMod; ChatGPT, Claude, or Grok (optional mod-assistant); Discord API + curl/jq (optional, advanced); Rust/cargo (optional, re-run regex tests)
Published: 2026-10-21 · Updated: 2026-11-27

AutoMod rule lists for fake Nitro/Steam scam links, invite spam, mention raids and impersonation names, rolled out alert-first, plus mod reply templates, a #rules post, a mod log, and an AI mod-assistant that only drafts; a human approves every action. Regex-tested in the lab and partly tested in a real server (setup + partial live test 2026-11-27).

## What's inside
- Regex-tested AutoMod rule lists for fake Nitro/Steam scam links, invite spam, mention raids, and impersonation names (partly field-tested 2026-11-27)
- A 3-day alert-only rollout before anything blocks
- Mod reply templates, a #rules post, and a mod log
- An AI mod-assistant that only drafts and flags; a human approves every action

---

The kit's README (included in the .zip) follows.

# Discord Server Safety Kit — Bot Pantry Kit

Catch fake Nitro links, fake Steam gift scams, invite spam, and mention raids. You get tested AutoMod rule lists with a 3-day alert-only rollout, mod reply templates, a rules channel, a mod log, and an AI mod-assistant. The assistant only drafts and flags; a human approves every message, delete, timeout, and ban.

> **Status: setup + partial live test 2026-11-27.** We checked the limits against Discord's docs on **2026-10-21 and 2026-11-27**. All 24 regex patterns (plus 2 optional BP-1b patterns) were tested with Rust's `regex` crate (the flavor AutoMod uses): 178/178 sample messages behave as expected, and none of the 85 normal messages and names are blocked. That's a lab test. On 2026-11-27 we also built BP-1, BP-2, BP-3, BP-5, BP-6 and BP-7 in a real test server: Discord accepted every pattern and keyword, and 5 of the 6 alert-only test messages behaved as expected from a non-mod alt. **One did not:** `fr33 n1tro >> https://discord-nitro.ru/claim` raised only a BP-3 alert, where the lab test says BP-1 should alert too. We don't know why yet (`setup/discord-ui.md` step 8 has a diagnostic). Not yet tested in a real server: blocking (phase 2), BP-5 (mention spam), BP-6, BP-7, and BP-4 (the test server didn't offer a member-name rule). Run the alt-account test yourself before you rely on any rule.

## What's inside
| File | What it's for |
|---|---|
| `automod-rules.md` | Keyword lists + regex for 7 AutoMod rules (scam links, invites, watchlist, impersonation names, mention spam, spam filter, flagged words), plus known gaps |
| `setup/discord-ui.md` | Step-by-step setup in Server Settings > Moderation > AutoMod (60–90 min for a first-timer, see below; the T1 diagnostic and a locked alt are extra), with the field-test results |
| `setup/ai-assistant.md` | Set up the mod-assistant in ChatGPT, Claude, or Grok (copy-paste alerts, no bot needed) |
| `setup/api-or-bot.md` | Advanced: create the rules with the Discord API, and an optional alert-relay bot |
| `automod-rules.json` | API payloads for every rule (all disabled, BP-1/BP-2 alert-only first) + phase-2 patches |
| `discord-limits.md` | Every AutoMod limit that matters, with sources, conflicts, and what's unverified |
| `system-prompt.md` | The mod-assistant's instructions: triage, drafts, raids, arguments. It never acts on its own |
| `reply-templates.md` | Scam warning, timeout, ban, appeal, hacked account, de-escalation |
| `rules-channel-template.md` | A #rules post you can paste and edit |
| `mod-log-template.md` | Mod log format + case numbering + weekly/monthly review |
| `examples.md` | Worked examples: real-style scams, what fires, what the mod does |
| `false-positives.md` | How to spot and fix false positives, and the known evasions |
| `troubleshooting.md` | Fixes for common problems |
| `safety-checklist.md` | Before turning rules on, assistant guardrails, monthly checks |
| `customize.md` | Adapting the kit to your game, language, and server size |
| `testing/` | Lab test results, the 2026-11-27 field-test results, and a small Rust project that re-runs every lab test and fails if anything changes |

## Quickstart (60–90 min the first time)
Where the time goes: setting up a **throwaway non-mod alt account** (a new Discord account usually needs an email and phone check), **creating the AutoMod rules** and adding their 23 regex patterns one chip at a time, then running the test messages (the BP-5 test needs 7 dummy roles, about 5–10 more minutes), and **adapting the templates** (#rules post, reply templates, mod-assistant settings) to your server. This is an estimate from counting the steps, not a stopwatch time. The 60–90 min range covers setup through the step 8 phase-1 table (the C1 canary and T1–T7). It does **not** include the T1 diagnostic in `setup/discord-ui.md` step 8 (about 10 min) or recovering a locked alt (10–20 min); those come on top if you need them. The 2–3 day alert-only wait before blocking also comes on top, but you don't have to do anything during it.

1. Make a private **#mod-alerts** channel (mods only), a private **#automod-test** channel, and a **Moderator** role.
2. Follow `setup/discord-ui.md` to create **BP-1 to BP-7** from `automod-rules.md` (Server Settings > Moderation > AutoMod). New custom rules start with **Block message ticked**, so **untick it** for the alert-only rules. BP-1 and BP-2 start as **alert only** for 2–3 days. Then tick Block (and add Timeout for BP-1). If you don't see **BP-4 (impersonation names)**, skip it. Our test server didn't offer it; whether that was because it wasn't a Community server is unverified (Discord's FAQ says AutoMod is available for all servers).
3. Post `rules-channel-template.md` in #rules (edit the bracketed parts).
4. Pin `reply-templates.md` in your mod channel.
5. Test from a **throwaway non-mod alt account** in #automod-test. Admins and anyone with Manage Server are always exempt, so your own account tests nothing. **The test messages look like scams.** In the 2026-11-27 test, Discord logged the alt out after about six scam-style messages and told it to reset its password. We don't know whether the test messages caused it; it could be Discord's own account protection. Use an account you can lose, and post each test message only once.
6. Optional: set up the mod-assistant (`setup/ai-assistant.md`). You **copy alerts from #mod-alerts and paste them** into your assistant; it drafts a verdict and a reply for you to approve. Nothing in this kit reads #mod-alerts automatically. A relay bot is an advanced, bring-your-own option (`setup/api-or-bot.md`).

## What this kit won't do
- **Some of it isn't proven in a real server.** See the status note at the top. In particular, we haven't shown that BP-1 still alerts (or blocks) when BP-3 matches the same message.
- **Our test server didn't show every rule.** It didn't offer a member-name rule (BP-4) or a mention-raid toggle (BP-5). A third-party source says those may be Community-only; we haven't verified that, and Discord's FAQ says AutoMod is available for all servers.
- **It can't see DMs.** AutoMod only checks server messages and member names, and most "I accidentally reported you" scams happen in DMs. Post the DM warning from `reply-templates.md` in #announcements.
- **Some scams get past regex.** Spaced-out letters (`d i s c o r d . g g`), fullwidth text, invisible characters, Cyrillic or Greek lookalike letters, and brand-new lookalike domains can slip by. The kit **alerts** on invisible characters and mixed-script words, and is written to block the common lookalikes, but we haven't yet shown that in a live server when BP-3 also matches the same message (see the T1 field note), and no regex catches everything. Details: `automod-rules.md` > Known gaps.
- **The assistant never acts.** It never bans, kicks, times out, deletes, or posts by itself. That's on purpose.
- **Regex matches patterns, not intent.** Keep the Watchlist (BP-3) on alert only and let a human decide.

---
This kit is free from Bot Pantry: https://botpantry.com/kits/discord-safety
Share that link with anyone it would help. New kits added regularly, plus a weekly roundup of the most-downloaded ones: https://botpantry.com/newsletter
