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

# Auto Responders

Automatically respond to trigger messages.

## Creating an auto responder

You can create an auto responder with the `autoresponder add` command.

<Warning>
  The **trigger** and **response** must be separated by a comma (`,`).
</Warning>

<Tip>
  The `message` parameter can be raw text or an **embed** with dynamic **variables**.
</Tip>

<CodeGroup>
  ```typescript Syntax theme={null}
  .autoresponder add (trigger, response) [--flags]
  ```

  ```typescript Example theme={null}
  .autoresponder add welc, welcome to the server!
  .autoresponder add welc, {embed}$v{title: welcome}$v{description: welcome to the server!}
  ```

  ```typescript Example with flags theme={null}
  .autoresponder add welc, welcome to the server! --self_destruct 10 --reply
  .autoresponder add ,welc, welcome to the server! --not_strict --ignore_command_check
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/drown/jdFO93zJI453v_C_/images/Screenshot-2026-04-29-at-11.25.48-PM.png?fit=max&auto=format&n=jdFO93zJI453v_C_&q=85&s=9d5dd8555cc8e5bc2e1deffa77e45391" alt="Screenshot 2026 04 29 At 11 25 48 PM" width="1610" height="1282" data-path="images/Screenshot-2026-04-29-at-11.25.48-PM.png" />
</Frame>

### Available flags

The following flags can be used to customize the response

<AccordionGroup>
  <Accordion title="Not strict">
    The `--not_strict` flag will search for the trigger anywhere in the message. For example, if the trigger is `hello`, it will respond to `hello there`.
  </Accordion>

  <Accordion title="Self destruct">
    The `--self_destruct` flag schedules the response for deletion after a specified time, which must be between `6` and `60` seconds.
  </Accordion>

  <Accordion title="Delete trigger">
    The `--delete` flag will delete the trigger message after the response is sent.
  </Accordion>

  <Accordion title="Reply to trigger">
    The `--reply` flag will reply to the trigger message.
  </Accordion>

  <Accordion title="Ignore command check">
    The `--ignore_command_check` flag will allow the responder to trigger even if it’s a pre-existing command.
  </Accordion>
</AccordionGroup>

## Removing an auto responder

You can remove an auto responder with the `autoresponder remove` command.

<CodeGroup>
  ```typescript Syntax theme={null}
  .autoresponder remove (trigger)
  ```

  ```typescript Example theme={null}
  .autoresponder remove welc
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/drown/jdFO93zJI453v_C_/images/Screenshot-2026-04-29-at-11.26.21-PM.png?fit=max&auto=format&n=jdFO93zJI453v_C_&q=85&s=9a00658ff1b5791b0dc218516cf0cccd" alt="Screenshot 2026 04 29 At 11 26 21 PM" width="826" height="358" data-path="images/Screenshot-2026-04-29-at-11.26.21-PM.png" />
</Frame>

## Restricting auto responders

### Restricting to a channel or role

Toggle exclusive access for an autoresponder to a role or channel with the `autoresponder exclusive` command

<CodeGroup>
  ```typescript Syntax theme={null}
  .autoresponder exclusive (role or channel) (trigger)
  ```

  ```typescript Example theme={null}
  .autoresponder exclusive #general lifetime
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/drown/jdFO93zJI453v_C_/images/Screenshot-2026-04-29-at-11.36.08-PM.png?fit=max&auto=format&n=jdFO93zJI453v_C_&q=85&s=ffaf54bdf880ba8d0fb396c2ce572ad9" alt="Screenshot 2026 04 29 At 11 36 08 PM" width="1130" height="684" data-path="images/Screenshot-2026-04-29-at-11.36.08-PM.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/drown/jdFO93zJI453v_C_/images/Screenshot-2026-04-29-at-11.36.14-PM.png?fit=max&auto=format&n=jdFO93zJI453v_C_&q=85&s=2e47bb8b58a5407b33e7f02a9da7d24c" alt="Screenshot 2026 04 29 At 11 36 14 PM" width="1186" height="714" data-path="images/Screenshot-2026-04-29-at-11.36.14-PM.png" />
</Frame>

## Auto Responder Roles

Autoresponder roles are roles that are assigned or removed to members when they say a specific message.

<Warning>
  It’s easy to confuse these commands! Running the `add` command again would undo the functionality of giving members roles.
</Warning>

<CodeGroup>
  ```typescript Syntax theme={null}
  .autoresponder role (add or remove) (role) (trigger)
  ```

  ```typescript Example theme={null}
  .autoresponder role add Verified Verify
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/drown/jdFO93zJI453v_C_/images/Screenshot-2026-04-29-at-11.39.12-PM.png?fit=max&auto=format&n=jdFO93zJI453v_C_&q=85&s=9a50afdbd973367a4f0c65a4c436809d" alt="Screenshot 2026 04 29 At 11 39 12 PM" width="1118" height="708" data-path="images/Screenshot-2026-04-29-at-11.39.12-PM.png" />
</Frame>

### Removing an autoresponder rule

You can remove an autoresponder role by running the same command again. This action will reverse the previous configuration and remove the assignment or removals of the role

## Related commands

<AccordionGroup>
  <Accordion title="Updating an auto responder">
    You can use the `autoresponder update` command to update an auto responder.

    <Info>
      This command uses the same syntax as the `autoresponder add` command.
    </Info>
  </Accordion>

  <Accordion title="Removing all auto responders">
    You can use the `autoresponder reset` command to remove all auto responders.
  </Accordion>

  <Accordion title="Viewing all auto responders">
    You can use the `autoresponder list` command to view all auto responders.
  </Accordion>
</AccordionGroup>
