Skip to main content

Installation

To install this plugin, follow these steps:
  1. Download the plugin files, put them in /plugins folder.
  2. Download the dependency ZDLibrary via GitHub.
  3. Join the discord server ( discord.gg/zerodev ) and create a ticket for license request.
  4. Paste the license key in LICENSE_KEY field in the config.
  5. Restart AthenaBot via npm start or node index.js.

Configuration

Advanced Auto Mod uses a rule-based system to monitor and manage server activity.

General Settings

  • LICENSE_KEY: Your plugin license key.
  • ignored: Define categories, roles, channels, or users that the auto-mod should skip.

Creating Rules

Rules are defined in the rules section. Each rule has a custom key (e.g., excessive_emojis) and several components:
rules: {
  my_custom_rule: {
    name: "Rule Name",
    enabled: true,
    management: {
      type: "message", // "emoji", "ping", or "message"
      action: [
        { type: "delete" },
        { type: "mute", duration: "1h" }
      ],
      guide: {
        messages: ["badword"], // If type is "message"
        regex: "regex_pattern"   // If type is "message"
      }
    },
    response: {
      type: "REPLY", // "DM" or "REPLY"
      message: {
        predefined_id: "my_message_id",
        buttons: {
          name: "Click me",
          backbutton: true // Navigates to the parent message
        }
      }
    }
  }
}

Management Types and Guides

  • Emoji: Use emoji_limit and ignored_emojis in the guide.
  • Ping: Use ping_limit and ignored_pings in the guide.
  • Message: Use messages (list of words) or regex for detection.

Actions

Supported actions include delete, warn, mute, kick, and ban. You can provide a duration (e.g., 1h, 1d) for mutes and bans.

Responses

You can send a predefined_id (from your Embeds database) as a reply or DM when a rule is triggered. Interactive buttons can be added to these responses, including backbutton: true for multi-page navigation.