Docs/Plugins

Automod plugin

Automatic moderation for duplicate messages, rate limits, and join raids. Dreamliner evaluates messages and member joins against configurable rules and takes action when thresholds are exceeded.

Automod is disabled by default. Enable it when you're ready with /plugin toggle plugin:automod state:Enable. Rule defaults are preconfigured in the template so you can turn it on without extra setup.

#Configuration

yaml
plugins:
  automod:
    enabled: false
    config:
      enabled_rules:
        - duplicate
        - rate_limit
      duplicate_window_ms: 30000
      duplicate_max: 3
      rate_limit_count: 5
      rate_limit_window_ms: 10000
      raid_join_count: 10
      raid_join_window_ms: 30000
      ignored_channels: []
      ignored_roles: []
      action: delete
      mute_duration_ms: 600000
    overrides:
      - level: ">=50"
        config:
          can_status: true
          can_test: true
          can_configure: true
FieldDescription
enabledMaster switch (false by default). Use /plugin toggle or set in YAML
enabled_rulesActive rule types: duplicate, rate_limit, raid
duplicate_window_msTime window for duplicate detection
duplicate_maxMax identical messages in the window
rate_limit_countMax messages allowed in the rate-limit window
rate_limit_window_msRate-limit time window
raid_join_countJoins that trigger raid detection
raid_join_window_msRaid detection time window
ignored_channelsChannel IDs excluded from automod
ignored_rolesRole IDs excluded from automod
actiondelete, warn, or mute when a rule triggers
mute_duration_msMute duration when action is mute
log_channel_idOptional override; defaults to server moderation_log_channel_id

Automod actions and raid alerts are logged to moderation_log_channel_id using the same format as other moderation logs.

#Commands

CommandPermissionDescription
/automod statuscan_statusShow current automod settings
/automod testcan_testTest sample text against active rules
/automod configurecan_configureUpdate common automod settings
/automod ignore-channelcan_configureIgnore or un-ignore a channel
/automod ignore-rolecan_configureIgnore or un-ignore a role

#Requirements

  • For mute action, the bot applies a Discord timeout using mute_duration_ms (defaults to 10 minutes if unset).
  • Members with ignored roles are skipped.
  • Bot messages are not checked.