Docs/Plugins

Autoreactions plugin

Automatically react to new messages with a specific emoji. Rules can apply to one channel or all channels, with flexible triggers and optional cadence controls.

#Configuration

yaml
plugins:
  autoreactions:
    enabled: true
    config:
      rules:
        - id: 1
          channel_id: "*"
          emoji: "๐Ÿ‘"
          trigger: every_message
        - id: 2
          channel_id: "123456789012345678"
          emoji: "๐Ÿ”ฅ"
          trigger: contains
          match: "pog"
          every_n: 5
          cooldown_seconds: 30
        - id: 3
          channel_id: "*"
          emoji: "๐Ÿ“Ž"
          trigger: every_message
          attachments_only: true
    overrides:
      - level: ">=50"
        config:
          can_add: true
          can_remove: true
          can_list: true
FieldDescription
rulesList of rules (see below)
idUnique rule ID
channel_idChannel ID, or * for all channels
emojiEmoji to react with
triggerevery_message, contains, starts_with, exact, or regex (default: every_message)
matchText/regex to match (required unless trigger is every_message)
regexLegacy: treated as trigger: regex + match
every_nOnly react on every Nth matching message (optional, โ‰ฅ2)
cooldown_secondsMinimum seconds between reactions for this rule (optional)
attachments_onlyOnly react when the message has attachments
links_onlyOnly react when the message contains a link

#Commands

CommandPermissionDescription
/autoreaction addcan_addRequires emoji, then opens a modal for trigger/channel/extras
/autoreaction removecan_removeRemove a rule by ID
/autoreaction listcan_listList all rules with IDs

#Add form

  1. Run /autoreaction add emoji:โ€ฆ (unicode or custom emoji)
  2. A Discord modal opens (see modal components) with:
    • When should it react? โ€” dropdown (every message, contains, starts with, exact, regex)
    • Match text โ€” optional; required unless you chose every message
    • Channel โ€” optional channel picker (empty = all channels)
    • Extras โ€” multi-select for cadence/filters (every Nth match, cooldowns, attachments/links only)

#Requirements

  • The bot needs Add Reactions in the target channel(s).
  • Bot messages are not auto-reacted.