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

# Auto Responses

> Create automatic responses within your server!

### Creating an auto-responder

An auto-responder can be created by using `,autoresponder add`

<Info>
  The response can be an embed or a regular message.

  <Warning>
    A comma must separate the **message** and the **trigger**.
  </Warning>
</Info>

<CodeGroup>
  ```plaintext Syntax theme={null}
  ,autoresponder add (trigger, message)
  ```

  ```plaintext Example theme={null}
  ,autoresponder add hello, hey there
  ```

  ```plaintext Embed Example theme={null}
  ,ar add hey, {description: Hey there!}{color: #9064b5}}
  ```
</CodeGroup>

### Flags

<AccordionGroup>
  <Accordion title="Strict">
    Using the `--strict` flag will make it so the message content must **strictly** match the trigger**.**
    For example:&#x20;
    **Trigger**: Hi
    **Message**: Hi everyone!
    The bot **will not** respond due to the message content containing something other than the trigger.
  </Accordion>

  <Accordion title="Delete">
    Using the `--delete` flag will make it so the original message, which triggered the response will be deleted.
  </Accordion>

  <Accordion title="Reply" defaultOpen={false}>
    Using the `--reply` flag will make it so the bot will respond to the original message, which triggered the response.
  </Accordion>
</AccordionGroup>

### Deleting an Auto-Responder

<CodeGroup>
  ```plaintext Syntax theme={null}
  ,autoresponder remove (trigger)
  ```

  ```plaintext Example theme={null}
  ,autoresponder remove hello
  ```
</CodeGroup>

### List all Auto-Responders

<CodeGroup>
  ```plaintext Syntax theme={null}
  ,autoresponder list
  ```
</CodeGroup>
