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

# Auto Responders

> Create automatic responses to specific triggers in your server

## Overview

Auto responders automatically reply when members send messages containing specific triggers. Perfect for FAQs, keyword responses, memes, and automated interactions. Supports text replies, reactions, and custom embeds with advanced flags for precise control.

<Info>
  Auto responders can be text messages, emoji reactions, or custom embeds with optional flags for fine-tuned behavior.
</Info>

***

## Commands

<AccordionGroup>
  <Accordion title="autoresponder add" icon="plus">
    Create a new auto responder.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~autoresponder add <trigger> <response> [type=text|reaction|embed] [flags=flag1,flag2]
      ```

      ```bash Example theme={null}
      ~autoresponder add hello Hi there! Welcome to the server
      ~ar add gm Good morning! ☀️
      ~autoresponder add brb 👋 type=reaction
      ~ar add rules Check the rules in #rules flags=exact,delete
      ~autoresponder add hi Hello {user.mention}! flags=start
      ```
    </CodeGroup>

    **Parameters:**

    * **trigger** — Word/phrase that triggers the response
    * **response** — What the bot replies with
    * **type** — Optional: `text`, `reaction`, or `embed` (auto-detected)
    * **flags** — Optional: Behavior modifiers (comma-separated)

    **Type Auto-Detection:**

    * If response is 1-3 emojis only → `reaction` type
    * Otherwise → `text` type
    * Override with `type=` parameter

    **Aliases:** `ar add`, `autoresponse add`\
    **Permissions:** Manage Server
  </Accordion>

  <Accordion title="autoresponder remove" icon="minus">
    Delete an existing auto responder.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~autoresponder remove <trigger>
      ```

      ```bash Example theme={null}
      ~autoresponder remove hello
      ~ar remove gm
      ~ar delete rules
      ```
    </CodeGroup>

    **Parameters:**

    * **trigger** — Trigger phrase to remove

    **Aliases:** `ar remove`, `ar delete`, `ar del`\
    **Permissions:** Manage Server
  </Accordion>

  <Accordion title="autoresponder edit" icon="pen">
    Edit an existing auto responder.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~autoresponder edit <trigger> <field> <new_value>
      ```

      ```bash Example theme={null}
      ~autoresponder edit hello response Hi! How can I help?
      ~ar edit gm type reaction
      ~ar edit rules flags exact,delete
      ```
    </CodeGroup>

    **Fields:**

    * **response** (or **reply**) — Change the response text
    * **type** — Change type: `text`, `reaction`, or `embed`
    * **flags** — Change flags (comma-separated, no spaces)

    **Aliases:** `ar edit`, `ar modify`\
    **Permissions:** Manage Server
  </Accordion>

  <Accordion title="autoresponder list" icon="list">
    View all auto responders (compact view).

    <CodeGroup>
      ```bash Syntax theme={null}
      ~autoresponder list
      ```

      ```bash Example theme={null}
      ~autoresponder list
      ~ar list
      ```
    </CodeGroup>

    **What It Shows:**

    * All triggers and responses
    * Type and flags for each
    * Up to 25 responders per page
    * Compact overview format

    **Aliases:** `ar list`, `ar show`\
    **Permissions:** Manage Server
  </Accordion>

  <Accordion title="autoresponder listall" icon="list-check">
    Browse auto responders individually (detailed view).

    <CodeGroup>
      ```bash Syntax theme={null}
      ~autoresponder listall
      ```

      ```bash Example theme={null}
      ~autoresponder listall
      ~ar listall
      ```
    </CodeGroup>

    **What It Shows:**

    * Detailed view of each responder
    * Full response text
    * All flags and settings
    * Navigation buttons (2 per page)

    **Aliases:** `ar listall`, `ar showall`\
    **Permissions:** Manage Server
  </Accordion>

  <Accordion title="autoresponder clear" icon="trash">
    Delete all auto responders in the server.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~autoresponder clear
      ```

      ```bash Example theme={null}
      ~autoresponder clear
      ~ar clear
      ```
    </CodeGroup>

    **What It Does:**

    * Removes ALL responders from server
    * Cannot be undone
    * Shows confirmation

    <Warning>
      This permanently deletes all auto responders in your server.
    </Warning>

    **Aliases:** `ar clear`, `ar wipe`\
    **Permissions:** Manage Server
  </Accordion>

  <Accordion title="listflags" icon="flag">
    View all available responder flags.

    <CodeGroup>
      ```bash Syntax theme={null}
      ~listflags
      ```

      ```bash Example theme={null}
      ~listflags
      ~flags
      ```
    </CodeGroup>

    **What It Shows:**

    * All available flags
    * Detailed explanations
    * Usage examples
    * Interactive navigation

    **Aliases:** `flags`, `flaglist`\
    **Permissions:** None
  </Accordion>
</AccordionGroup>

***

## Response Types

<Tabs>
  <Tab title="Text Response">
    The bot sends a text message.

    ```bash theme={null}
    ~ar add hello Welcome to the server!
    ~ar add help Check out #support for assistance
    ```

    **Use Cases:**

    * Greetings and welcome messages
    * FAQ responses
    * Helpful information
    * Commands guides

    **Supports:**

    * Plain text
    * Variables/placeholders
    * Mentions
    * Custom formatting
  </Tab>

  <Tab title="Reaction Response">
    The bot reacts with emojis (1-3 emojis).

    ```bash theme={null}
    ~ar add brb 👋
    ~ar add thanks ❤️
    ~ar add nice 👍 😄 ✨
    ```

    **Use Cases:**

    * Quick acknowledgments
    * Emoji responses
    * Fun interactions
    * Simple reactions

    **Limits:**

    * Maximum 3 emojis
    * Unicode or custom emojis
    * Auto-detected if response is only emojis
  </Tab>

  <Tab title="Embed Response">
    The bot sends a custom embed.

    ```bash theme={null}
    ~ar add info {embed}$v{title: Server Info}$v{description: Welcome!}{embed} type=embed
    ```

    **Use Cases:**

    * Formatted information
    * Rich content
    * Professional responses
    * Multi-field data

    **Supports:**

    * Full embed syntax
    * Variables/placeholders
    * Images and thumbnails
    * Custom colors
  </Tab>
</Tabs>

***

## Available Flags

| Flag       | Description                                                           | Example Use                         |
| ---------- | --------------------------------------------------------------------- | ----------------------------------- |
| `case`     | Case-sensitive trigger<br />(`Hello` ≠ `hello`)                       | Proper nouns, specific formatting   |
| `exact`    | Only triggers if message is exactly the trigger<br />(no extra text)  | Precise commands, one-word triggers |
| `start`    | Triggers if message starts with trigger<br />(allows text after)      | Prefix-style responses              |
| `includes` | Triggers if trigger appears anywhere in message<br />(even in middle) | Keyword detection                   |
| `bot`      | Also triggers on bot messages<br />(normally ignored)                 | Bot-to-bot interactions             |
| `dm`       | Works in DMs<br />(normally server-only)                              | Private responses                   |
| `delete`   | Deletes user's message after triggering<br />(cleanup)                | Clean channels, hide commands       |
| `reaction` | Forces reaction type<br />(manual override)                           | Explicit reaction mode              |

***

## Flag Usage

<Tabs>
  <Tab title="Single Flag">
    ```bash theme={null}
    # Case-sensitive trigger
    ~ar add Hello Hi there! flags=case

    # Exact match only
    ~ar add help Type !help for commands flags=exact

    # Delete user message
    ~ar add secret Shhh! flags=delete
    ```
  </Tab>

  <Tab title="Multiple Flags">
    ```bash theme={null}
    # Exact + Delete
    ~ar add rules Check #rules flags=exact,delete

    # Start + Case
    ~ar add Hello Hi! flags=start,case

    # Includes + Bot
    ~ar add error Error detected! flags=includes,bot
    ```
  </Tab>

  <Tab title="Flag Combinations">
    ```bash theme={null}
    # FAQ that must be exact and deletes trigger
    ~ar add !faq Here's the FAQ: ... flags=exact,delete

    # Case-sensitive greeting
    ~ar add Hello Welcome! flags=case,exact

    # Keyword anywhere in message
    ~ar add help Need help? flags=includes
    ```
  </Tab>
</Tabs>

***

## Permission Requirements

<CardGroup cols={2}>
  <Card title="Bot Permissions" icon="robot">
    The bot needs:

    * Send Messages
    * Manage Messages (for `delete` flag)
    * Add Reactions (for reaction type)
    * Embed Links (for embed type)
  </Card>

  <Card title="User Permissions" icon="user">
    Command Requirements:

    * **Manage Server** — All autoresponder commands
    * **None** — Viewing flags with `listflags`
  </Card>
</CardGroup>

***

## Aliases

<CardGroup cols={3}>
  <Card title="autoresponder" icon="reply">
    Full command
  </Card>

  <Card title="ar" icon="a">
    Short alias
  </Card>

  <Card title="autoresponse" icon="reply-all">
    Alternative
  </Card>
</CardGroup>

***

## Usage Examples

<Tabs>
  <Tab title="Basic Responses">
    ```bash theme={null}
    # Simple text responses
    ~ar add hello Hi there! Welcome to the server
    ~ar add bye Goodbye! See you later
    ~ar add thanks You're welcome!
    ~ar add gm Good morning everyone! ☀️
    ```
  </Tab>

  <Tab title="Reaction Responses">
    ```bash theme={null}
    # Emoji reactions
    ~ar add brb 👋
    ~ar add thanks ❤️
    ~ar add nice 👍 😄 ✨
    ~ar add rip 😔 🙏
    ```
  </Tab>

  <Tab title="FAQ Responses">
    ```bash theme={null}
    # Common questions
    ~ar add !help Check out our commands in #bot-commands flags=exact
    ~ar add !rules Read the rules in #rules flags=exact,delete
    ~ar add !support Open a ticket in #support for help flags=exact
    ```
  </Tab>

  <Tab title="With Variables">
    ```bash theme={null}
    # Using placeholders
    ~ar add welcome Welcome {user.mention} to {guild.name}!
    ~ar add joined You joined on {user.joined_at}
    ~ar add members We have {guild.count} members!
    ```
  </Tab>

  <Tab title="Advanced Flags">
    ```bash theme={null}
    # Case-sensitive
    ~ar add GM Good morning! flags=case

    # Start trigger
    ~ar add !warn Warning: flags=start

    # Includes keyword
    ~ar add discord Join our Discord! flags=includes

    # Delete + Exact
    ~ar add secret 🤫 flags=delete,exact
    ```
  </Tab>

  <Tab title="Management">
    ```bash theme={null}
    # View all responders
    ~ar list

    # View detailed
    ~ar listall

    # Edit responder
    ~ar edit hello response Hi! How are you?

    # Remove responder
    ~ar remove hello

    # Clear all
    ~ar clear
    ```
  </Tab>
</Tabs>

***

## Common Use Cases

<AccordionGroup>
  <Accordion title="FAQ automation" icon="circle-question">
    ```bash theme={null}
    ~ar add !invite https://discord.gg/... flags=exact
    ~ar add !website https://example.com flags=exact
    ~ar add !support Open a ticket in #support flags=exact
    ```

    Automate answers to frequently asked questions.
  </Accordion>

  <Accordion title="Greeting system" icon="hand-wave">
    ```bash theme={null}
    ~ar add hello Hi {user.mention}! Welcome!
    ~ar add gm Good morning! ☀️
    ~ar add gn Goodnight! 🌙
    ```

    Friendly automatic greetings.
  </Accordion>

  <Accordion title="Meme responses" icon="face-grin">
    ```bash theme={null}
    ~ar add f 😔 🙏
    ~ar add bruh 💀
    ~ar add based 😎
    ```

    Fun emoji reactions to common phrases.
  </Accordion>

  <Accordion title="Command cleanup" icon="broom">
    ```bash theme={null}
    ~ar add !help Check DMs for help flags=exact,delete
    ~ar add !ping Pong! flags=exact,delete
    ```

    Clean channels by deleting trigger messages.
  </Accordion>

  <Accordion title="Keyword detection" icon="magnifying-glass">
    ```bash theme={null}
    ~ar add banned word Please watch your language flags=includes,delete
    ~ar add help Need help? Ask in #support! flags=includes
    ```

    Detect keywords anywhere in messages.
  </Accordion>
</AccordionGroup>

***

## Tips & Best Practices

<Info>
  **Design Tips**

  * Use `exact` flag for command-style triggers
  * Use `includes` for keyword detection
  * Combine `delete` flag for cleaner channels
  * Keep responses concise and helpful
  * Test responders before deploying
</Info>

<Note>
  **Flag Strategy**

  * `exact` — Best for commands (!help, !rules)
  * `start` — Good for prefix triggers
  * `includes` — Great for keyword detection
  * `delete` — Useful for hiding trigger messages
  * `case` — When case matters (names, acronyms)
</Note>

<Warning>
  **Avoid**

  * Too many generic triggers (hello, hi, hey)
  * Responders that conflict with each other
  * Overly long responses
  * Triggers that are too common
  * Using `bot` flag unless needed
</Warning>

***

## Troubleshooting

### Responder Not Triggering

1. Check trigger spelling matches exactly
2. Verify flags - `exact` requires perfect match
3. Ensure bot has Send Messages permission
4. Check if `case` flag is causing issues
5. Try `~ar list` to verify it exists

### Response Not Showing

1. Verify bot has Embed Links permission (for embeds)
2. Check bot has Add Reactions permission (for reactions)
3. Ensure response text is valid
4. Test with a simple text response first

### "Trigger Already Exists"

You're trying to add a trigger that already exists.

**Solutions:**

* Use `~ar remove <trigger>` first
* Or use `~ar edit <trigger> response <new text>`
* Check `~ar list` to see existing triggers

***

## Related Features

<CardGroup cols={2}>
  <Card title="Variables" icon="brackets-curly" href="/variables">
    Use dynamic placeholders in responses
  </Card>

  <Card title="Embed Builder" icon="code" href="/embed-builder">
    Create custom embed responses
  </Card>

  <Card title="Welcome Messages" icon="hand-wave" href="/welcome">
    Automated welcome system
  </Card>

  <Card title="Custom Replies" icon="sliders" href="/config">
    Customize command responses
  </Card>
</CardGroup>
