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

# Autoresponders

<Card title="Module: Autoresponder" icon="reply" horizontal="True">
  Setup an autoresponder for trigger words. If the word is said, kyos will respond with your desired message.
</Card>

<Info>
  You may send an embed in your response message following the scripting guide **[here](https://docs.kyos.bot/resources/embeds)**
</Info>

## Creating an Autoresponder

<Tabs />

<Warning>
  You **must** separate the **trigger** and the **response** with a `,`
</Warning>

To create an autoresponder, execute the `autoresponder add` command

<CodeGroup>
  ```javascript syntax theme={null}
  ,autoresponder add (trigger), (response) (flags)
  ```

  ```javascript example theme={null}
  ,autoresponder add documentation, https://docs.kyos.bot/ --reply --self_destruct 20 --not_strict
  ```
</CodeGroup>

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/kyos-c60486ad/images/autoresponder-1.png" />
</Frame>

## Removing an autoresponder

<Tabs />

<Info>
  This will delete the **given** autoresponder, to delete **all**, use `all` as the trigger argument
</Info>

You may remove an autoresponder with the `autoresponder remove` command

<CodeGroup>
  ```javascript syntax theme={null}
  ,autoresponder remove (trigger)
  ```

  ```javascript example theme={null}
  ,autoresponder remove documentation 
  ```
</CodeGroup>

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/kyos-c60486ad/images/autoresponder-2.png" />
</Frame>

## Viewing the autoresponders

<Tabs />

To view the current autoresponders, you can use the `autoresponder list` command

<CodeGroup>
  ```javascript syntax theme={null}
  ,autoresponder list
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/kyos-c60486ad/I5vQIDwxulOEOE4L/images/autoresponder-3.png?fit=max&auto=format&n=I5vQIDwxulOEOE4L&q=85&s=38e5fe45941643265d6cf7064dbdb1da" width="322" height="190" data-path="images/autoresponder-3.png" />
</Frame>

## Flags

<Tabs />

Flags can be added to your autoresponder to allow more customization.

<AccordionGroup>
  <Accordion title="Not strict">
    The `--not_strict` flag makes kyos respond to the trigger even if it does not match the trigger exactly.

    <CodeGroup>
      ```javascript example command usage theme={null}
      ,autoresponder add docs, https://docs.kyos.bot --not_strict
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Reply">
    The `--reply` flag makes kyos **reply** to the trigger message.

    <CodeGroup>
      ```javascript example command usage theme={null}
      ,autoresponder add docs, https://docs.kyos.bot --reply
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Delete">
    The `--delete` flag makes kyos **delete** the trigger message.

    <CodeGroup>
      ```javascript example command usage theme={null}
      ,autoresponder add docs, https://docs.kyos.bot --delete
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Self destruct">
    The `--self_destruct` flag makes kyos **delete** the response message after a specified number of seconds. Must be between `6s`-`40s`

    <CodeGroup>
      ```javascript example command usage theme={null}
      ,autoresponder add docs, https://docs.kyos.bot --self_destruct 20
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>

## Miscellaneous

<Tabs />

<AccordionGroup>
  <Accordion title="Removing all autoresponders" icon="circle-info">
    Execute `autoresponder clear`
  </Accordion>
</AccordionGroup>
