Moderation module

Discord Moderation Bot Maker

Ban, kick, timeout, warn and purge with slash commands. Filter words, links, invites and spam automatically. Escalate repeat offenders without lifting a finger, and log every action to a channel. Your bot, your rules, no code.

  • No coding required
  • Your bot, your branding
  • Hosted for you
  • Free to use
mod-logLive
  1. AM
    Server invite removedAutomod21:03

    Mika posted a discord.gg link in #general. Message deleted and member warned.

    Rule: Server Invites. Warning 1 of 3.

  2. AM
    Mass mentions removedAutomod21:04

    Mika pinged 14 members in one message. Message deleted and member warned.

    Rule: Mass Mentions. Warning 2 of 3.

  3. JD
    /warn MikaModerator21:06

    Jordan: "Spamming after two automod warnings."

    Case #482. Warning 3 of 3.

  4. AP
    Timeout for 1 hourAuto punishment21:06

    Three warnings reached. Mika has been timed out and sent the reason by DM.

    Automatic punishment. Case #483.

Every moderation command, ready on day one

The Moderation module ships these slash commands. Switch any of them off, restrict them to the roles you choose, and add your own.

Punishments7 commands
  • /ban add

    Bans a user from the server

  • /ban temp

    Temporarily ban a user

  • /ban remove

    Removes a server ban from a user

  • /kick

    Kick someone from the server

  • /mute add

    Timeout a user

  • /mute remove

    Remove a timeout from a user

  • /warn

    Warn a user

Cases, history and notes7 commands
  • /case view

    View the details of a case

  • /case remove

    Remove a case number from a user

  • /user history

    View the moderation history of a user

  • /user clear-historyAdmin only

    Clear the moderation history of a user

  • /note add

    Add a moderator note to the user

  • /note view

    View a user's moderator note

  • /note remove

    Remove a moderator note from a user

Channels4 commands
  • /purge

    Delete multiple messages from a channel

  • /slowmode

    Modify the slowmode of a selected channel

  • /channel lock

    Remove the send messages permission from the channel

  • /channel unlock

    Add the send messages permission back to the channel

Members and roles4 commands
  • /user nick

    Moderate a user's nickname

  • /role addAdmin only

    Add a role to a server member

  • /role removeAdmin only

    Remove a role from a server member

  • /role tempAdmin only

    Temporarily give a user a role

Voice2 commands
  • /voice deaf

    Deafen and mute someone in voice chat

  • /voice undeaf

    Undeafen and unmute someone in voice chat

Utility3 commands
  • /say

    Make your bot say something

  • /server-info

    Get information about the server

  • /ping

    Check the latency of the bot

Add a command to the module and it gets the same settings and variables: moderator roles, the log channel, the DM template and case numbers.

Automod that never sleeps

Six rules, three punishments, and the options that stop it getting in your staff's way. Pick a rule to see what it catches.

Rule

Bad Words

Keep a blacklist of words the bot should catch and a whitelist for words that look bad but are fine in your server. Both are edited from the dashboard or with the automod commands.

RYRyuToday at 20:14

lol you absolute [blacklisted word], get out of my lobby

Removed by Automod: Bad Words

Punishment

Automod will delete message and warn every time this rule matches.

  • Ignore admins
  • Ignore bots
  • DM the member the reason
  • Log every Automod action
  • Whitelist words that are fine here
  • Blacklist words that are not

Repeat offenders escalate on their own

Set how many warnings or timeouts a member gets before the bot steps in, and what it does when they get there. Try it.

Automatic punishments

Fires once a member reaches a set number of warnings or timeouts. Add as many rules as you like.

Count
Needed
Then
Timeout length
  1. Warning 1 of 3Issued by a moderator with /warn, or by an Automod rule set to warn.
  2. Warning 2 of 3Issued by a moderator with /warn, or by an Automod rule set to warn.
  3. Warning 3 of 3Issued by a moderator with /warn, or by an Automod rule set to warn.
  4. Auto punishment: Timeout (1h)Member is timed out for 1h. A case is opened, the member is sent a DM, and the log channel gets the entry.

Stack as many rules as you like: three warnings for a timeout, five for a kick, seven for a ban. Warnings from moderators and from Automod both count.

Members hear it from your bot, in your words

The module sends a DM when someone is punished and posts an entry to your log channel. Both use the module's variables, so you write the template once.

Sample case
Show
Punishment colour#c51e3a
Logging colour#50c878
Variables you can use
  • {action}The punishment issued
  • {moderator}Who issued it
  • {time}When, as a Discord timestamp
  • {case}The case number
  • {reason}The reason given
Direct message to MikaToday at 21:06
NB
Nightfall BotAppToday at 21:06

Punishment Issued

You received a punishment from our server staff for breaking the server rules. Please revise the rules again, and check the details of your punishment below:

  • Punishment:Warning
  • Moderator:Jordan
  • Time:in 2 minutes
  • Case ID:#482
  • Reason:Spamming after two automod warnings

Nightfall's Moderation Team

Rules the module does not ship, built in the builder

Spam limits, raid handling, reports and appeals differ from server to server, so you build them from blocks. The punishment blocks open cases and log like the built in commands do.

  1. TriggerMessage sent

    Fires on every message in the channels you choose. Bots and staff roles are skipped with a condition.

  2. ActionAdd one to the member's counter

    A custom variable per member that resets after a short window, so the count only ever covers the last few seconds.

  3. ConditionMore than 6 messages in 10 seconds?

    Set the numbers to suit your server. Nothing happens on the other branch.

  4. ActionDelete, time out for 10 minutes, log it

    Purge their recent messages, apply the timeout, and post to the mod log with the reason "Spam". The case shows up in their history like any other.

Add AI moderation in one block

The API Request block ships with templates for the two moderation models most servers use. Paste your key into Secrets once, drop the block into a message event, and put a condition in front of the punishment.

API RequestCheck a message for harmful content
POSThttps://api.openai.com/v1/moderations
{
  "model": "omni-moderation-latest",
  "input": "{event_message_content}"
}
Comes back as{ai_check.response.results[0].flagged}

true or false, plus a score for each category if you want finer control.

Condition in front of the actionflagged equals true

Only the true branch reaches the punishment. Everything else falls through untouched.

  1. 1Message sent
  2. 2Send it to the model
  3. 3Flagged?
  4. 4Delete, warn and log the category

Keys are stored in your bot's Secrets and never appear in a message, a log or a variable. The model returns a value, your condition decides, and the bot acts. Nothing is banned by a model on its own.

How it compares to Discord AutoMod and hosted bots

Discord's built in AutoMod is worth keeping on. A BotGhost bot picks up everything it stops at.

FeatureYour BotGhost botDiscord AutoModHosted moderation bots
Runs under your own bot name and avatarYesBuilt inNo
Word, link, invite, caps, emoji and mention filtersYesLimitedYes
Warnings with numbered cases and moderator notesYesNoVaries
Automatic escalation after a set number of warningsYesNoVaries
Temporary bans and temporary rolesYesNoVaries
Custom punishment DMs and log embeds with variablesYesNoLimited
Rules you design yourself: spam limits, raids, reports, appealsYesNoNo
AI harmful content and toxicity checksYesLimitedVaries
Cost for everything aboveFreeFreeVaries by plan

Hosted bot features vary by bot and plan. Checked September 2026.

Built for the servers that need it most

The same module, tuned very differently

Gaming communities

Keep lobby chat playable at peak hours without a moderator glued to every channel.

  • Invite and link filters in public channels
  • Timeouts that escalate on their own
  • Purge and slowmode when a channel boils over
  • Voice deafen for the one person ruining a call

Creator servers

Protect a fast growing audience from the scams and raids that follow every upload.

  • Quarantine brand new accounts on join
  • Catch fake giveaway and nitro links
  • Mass mention protection on release days
  • Warnings that DM the reason automatically

Community and roleplay

Consistent, transparent moderation that members can trust, with a full record behind every decision.

  • Numbered cases and private staff notes
  • A report command for members
  • Ban appeals with approve and deny buttons
  • Custom DMs written in your server voice

Support and business

A quiet, professional server where the audit trail matters as much as the action.

  • Every action logged to a channel
  • Admin only commands for role changes
  • AI content checks with a human in the loop
  • Temporary roles for contractors and trials

Built on the platform behind millions of bots

Moderation runs on infrastructure that has been hosting Discord bots since 2018.

1.5M+
Users
Builders using BotGhost
10M+
Commands Created
Custom commands built by the community
2M+
Bots Created
Discord bots made with BotGhost

Set up moderation in six steps

From a fresh bot to warnings, Automod and automatic punishments

1

Create your bot and invite it

Sign in to BotGhost, create a bot, and invite it to your server with the Moderate Members, Ban Members, Kick Members and Manage Messages permissions.

2

Enable the Moderation module

Open Modules in the dashboard and switch on Moderation. All of the commands above go live on your bot straight away.

3

Set moderator roles and a log channel

Choose the roles that can run moderator and admin commands, or leave default permissions on so Manage Messages and Administrator decide. Pick the channel every action is logged to.

4

Turn on Automod rules

Enable the Automod module, pick the rules you want and the punishment for each. Add a few words to the blacklist and whitelist to start.

5

Add automatic punishments

In the Moderation module, add a rule such as three warnings leads to a one hour timeout. Add another for five warnings leads to a ban.

6

Write the DM and test it

Edit the punishment DM if you want your own wording, then run /warn on a test account. Check the DM, the log channel and /user history.

How to make a Discord moderation bot

A short, honest guide to what a moderation bot should handle, what the module gives you, and where the builder takes over.

What a moderation bot should actually do

Moderation has three jobs. React fast when someone breaks a rule, keep a record so the next moderator knows what happened, and take the repetitive decisions off your staff entirely. Most bots do the first job well and the other two badly, which is why the same members keep getting the same first warning from different moderators.

The Moderation module on BotGhost is built around cases. Every ban, kick, timeout and warning is numbered, attached to the member, visible with one command, and counted towards the automatic punishments you set. The bot remembers, so your staff do not have to.

Making one without writing code

Writing a moderation bot by hand means a Discord library, permission handling, a database for cases, a scheduler for temporary bans, and a machine to keep it all running. BotGhost removes all of that. The module is a set of switches in the dashboard, and the bot is hosted for you.

The path from a new server to a moderated one looks like this:

  • Create a bot and invite it with moderation permissions.
  • Enable the Moderation module and choose your moderator and admin roles.
  • Pick a log channel and, if you want, edit the DM members receive.
  • Enable Automod and choose the rules and punishments.
  • Add automatic punishments for repeat offenders. Done.

Where the builder takes over

The module covers the commands every server needs. The rules that differ from server to server, like how fast is too fast, how new is too new, and what a report should look like, are built in the event builder from the same blocks as everything else on your bot.

Because the punishment actions are blocks too, a rule you build yourself still opens a case, still sends the DM, and still lands in the log. A homemade anti spam rule and the built in warn command leave the same record behind.

Keeping AI in its place

AI moderation works best as a second opinion. Send the message to a model, get back a flag or a score, and put a condition in front of the action. Below the threshold nothing happens, above it the bot deletes and warns, and in the grey zone it posts to a staff channel for a human to decide.

The model reply is just another variable in the flow. It cannot ban anyone on its own, and every decision it influences is still a numbered case a moderator can review and remove.

Discord Moderation Bot FAQ

Ghost

Ready to build your moderation bot?

Create a bot, switch on the Moderation module, and have warnings, Automod and automatic punishments running in your server today. No code, nothing to install.