Skip to main content

Auto-Responses

Automatically reply to messages that match a regular expression pattern. Unlike custom commands (which require a prefix like !), auto-responses fire on any message content — no prefix needed.

Auto-responses are managed from Commands in the dashboard sidebar, in the Auto-Responses section directly below Custom Commands.

Auto-Responses on the Commands page in the ArkenBot dashboard


How It Works​

Every non-bot message is tested against your enabled auto-response rules in order. When a message matches the first rule, the bot sends the configured response and stops — only one response fires per message. The triggering message is optionally deleted.

Pattern matching is case-insensitive by default (i flag).


Creating an Auto-Response​

Via Dashboard​

  1. Go to Commands in the sidebar
  2. Scroll to the Auto-Responses card
  3. Click New Rule
  4. Fill in the pattern and response, then click Create Rule

Via Slash Command​

/autoresponse add pattern:<regex> response:<text> [flags:<i>] [embed:<true|false>] [delete_message:<true|false>]

Fields​

FieldRequiredDescription
PatternYesA regex pattern matched against the full message content. No delimiters — just the pattern itself.
FlagsNoRegex flags (default: i). Use gi for global+case-insensitive.
ResponseYesThe text the bot replies with when the pattern matches.
Send as EmbedNoWrap the response in a Discord embed.
Embed ColorNoHex color for the embed accent bar (only shown when embed is on).
Delete Triggering MessageNoRemove the member's message before replying.

Pattern Examples​

GoalPattern
Match the word "hello" anywherehello
Match "hello" as a whole word only\bhello\b
Match any Discord invite linkdiscord\.gg\/\w+
Match when someone mentions "rules" or "rule"rules?
Match a greeting phrase case-insensitively (default)good morning
Match a number between 1 and 999\b[1-9]\d{0,2}\b

Tip: Test your patterns on regex101.com before saving them.


Managing Rules​

From the dashboard Auto-Responses table you can:

  • Enable / Disable a rule with the toggle — disabled rules are skipped entirely
  • Delete a rule permanently with the trash icon
  • See the uses counter to track how often a rule fires

Via slash commands:

/autoresponse list — show all rules with their IDs
/autoresponse toggle id:<id> enabled:<true|false>
/autoresponse remove id:<id>

Notes​

  • Only the first matching rule fires per message — order rules from most specific to least specific
  • Invalid regex patterns are rejected at creation time — the bot validates them before saving
  • Auto-responses respect the ignoreBots flag (bot messages never trigger rules)
  • Changes take effect within ~2 minutes as the pattern cache refreshes automatically