> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flarebot.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure AutoMod

> Set up automatic message filtering to keep your server clean.

## Goal

Configure AutoMod to automatically filter spam, links, invites, and profanity — with automatic punishments.

## Steps

<Steps>
  <Step title="Enable Filters">
    ```bash theme={null}
    /automod antispam on
    /automod antilink on
    /automod antiinvite on
    /automod antibadwords on
    ```
  </Step>

  <Step title="Add Custom Bad Words">
    ```bash theme={null}
    /automod badwords add toxic
    /automod badwords add slur
    ```
  </Step>

  <Step title="Set Punishment">
    ```bash theme={null}
    /automod punishment warn
    ```

    Options: `warn`, `mute`, `jail`
  </Step>

  <Step title="Whitelist Trusted Channels/Users">
    ```bash theme={null}
    /automod whitelist add #bot-commands
    /automod whitelist add @TrustedMod
    ```
  </Step>

  <Step title="View Config">
    ```bash theme={null}
    /automod config
    ```
  </Step>
</Steps>

<Warning>
  If you set punishment to `jail`, you must run `/jailsetup` first to create the jail role and channel.
</Warning>
