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

# Automod Suite

> Protect your server with Anti-Invite, Anti-Link, Anti-Spam, Anti-MassMention, Anti-NSFW, Anti-Swear, and custom automod rules.

# Automod Suite

<Badge variant="pro">Tier 2: Pro</Badge>

> Comprehensive server security suite that automatically detects and punishes spam, Discord invites, external links, mention floods, NSFW content, swear words, and custom regex/word filters in real-time.

***

## Commands Overview

| Command            | Category  | Tier | Syntax                                 | Description                                   | Permissions   |
| :----------------- | :-------- | :--- | :------------------------------------- | :-------------------------------------------- | :------------ |
| `.antiinvite`      | `automod` | Pro  | `.antiinvite <subcommand> [args]`      | Blocks unauthorized Discord invite links.     | Administrator |
| `.antilink`        | `automod` | Pro  | `.antilink <subcommand> [args]`        | Blocks unauthorized website links & URLs.     | Administrator |
| `.antimassmention` | `automod` | Pro  | `.antimassmention <subcommand> [args]` | Blocks mention spam and mass pings.           | Administrator |
| `.antinsfw`        | `automod` | Pro  | `.antinsfw <subcommand> [args]`        | Blocks NSFW and adult imagery/links.          | Administrator |
| `.antispam`        | `automod` | Pro  | `.antispam <subcommand> [args]`        | Detects and blocks rapid message spamming.    | Administrator |
| `.antiswear`       | `automod` | Pro  | `.antiswear <subcommand> [args]`       | Blocks profanity and blacklisted curse words. | Administrator |
| `.automod`         | `automod` | Pro  | `.automod <subcommand> <args>`         | Custom automod rule builder & dashboard.      | Administrator |

***

## Core Automod Filters

All core automod modules share standard configuration subcommands for enabling, bypasses, logging channels, and punishment actions.

### 1. Anti-Invite

Blocks Discord server invitation links (`discord.gg/*`, `discord.com/invite/*`).

<Tabs>
  <Tab title="Enable / Disable">
    ```bash theme={null} theme={null}
    .antiinvite enable
    .antiinvite disable
    ```
  </Tab>

  <Tab title="Punishment & Logs">
    ```bash theme={null} theme={null}
    .antiinvite punishment mute
    .antiinvite logs #automod-logs
    ```

    *Punishment choices*: `mute`, `kick`, `ban`, `none`
  </Tab>

  <Tab title="Bypass & Config">
    ```bash theme={null} theme={null}
    .antiinvite bypass add @Staff
    .antiinvite bypass add #partners
    .antiinvite bypass remove @Staff
    .antiinvite config
    ```
  </Tab>
</Tabs>

***

### 2. Anti-Link

Prevents members from posting unapproved external website URLs and domain links.

```bash theme={null} theme={null}
.antilink enable
.antilink punishment mute
.antilink bypass add @Moderators
.antilink logs #mod-logs
.antilink config
```

***

### 3. Anti-Mass Mention

Protects your community against mention raids and spam by setting a maximum threshold of mentions per message.

```bash theme={null} theme={null}
.antimassmention enable
.antimassmention limit 3
.antimassmention punishment mute
.antimassmention logs #mod-logs
.antimassmention config
```

***

### 4. Anti-NSFW

Filters NSFW text and image content in non-age-restricted channels.

```bash theme={null} theme={null}
.antinsfw enable
.antinsfw punishment kick
.antinsfw logs #mod-logs
.antinsfw config
```

***

### 5. Anti-Spam

Monitors chat velocity and blocks rapid repeated messages (configurable threshold 4–10 messages).

```bash theme={null} theme={null}
.antispam enable
.antispam limit 5
.antispam punishment mute
.antispam logs #mod-logs
.antispam config
```

***

### 6. Anti-Swear

Enforces clean chat by filtering common profanities and offensive vocabulary.

```bash theme={null} theme={null}
.antiswear enable
.antiswear punishment mute
.antiswear logs #mod-logs
.antiswear config
```

***

## Custom Automod Engine

### automod

Create advanced custom automod rules with custom regex patterns, specific blacklisted phrases, custom alert messages, and designated punishment actions.

| Subcommand | Syntax                                      | Description                            | Example                                   |
| :--------- | :------------------------------------------ | :------------------------------------- | :---------------------------------------- |
| `config`   | `.automod config`                           | View full automod dashboard            | `.automod config`                         |
| `create`   | `.automod create <name>`                    | Create a new custom automod rule       | `.automod create Scams`                   |
| `delete`   | `.automod delete <name>`                    | Delete an existing custom automod rule | `.automod delete Scams`                   |
| `list`     | `.automod list`                             | List all created custom automod rules  | `.automod list`                           |
| `setup`    | `.automod setup <name> <subcommand> [args]` | Configure rule parameters              | `.automod setup Scams logs #automod-logs` |

#### Custom Automod Setup Options:

* `.automod setup <name> enable` / `disable`
* `.automod setup <name> logs <#channel>`
* `.automod setup <name> bypass <@role|#channel>`
* `.automod setup <name> punishment <mute|kick|ban|none>`
* `.automod setup <name> message <warning_message>`
* `.automod setup <name> blacklist <words>`
* `.automod setup <name> regex <pattern>`

<Tabs>
  <Tab title="Create Rule">
    ```bash theme={null} theme={null}
    .automod create NitroScam
    ```
  </Tab>

  <Tab title="Configure Rule">
    ```bash theme={null} theme={null}
    .automod setup NitroScam enable
    .automod setup NitroScam blacklist free nitro, claim nitro, steam gift
    .automod setup NitroScam punishment ban
    .automod setup NitroScam logs #security-logs
    ```
  </Tab>

  <Tab title="Inspect Rules">
    ```bash theme={null} theme={null}
    .automod list
    .automod config
    ```
  </Tab>
</Tabs>
