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

# Reaction Triggers

> Automatically add reactions to messages containing specific keywords.

## Overview

Reaction triggers (also known as `autoreact`) allow greed to automatically add emojis to messages that match specific keywords. This is perfect for community memes, automated polling, or highlighting specific topics.

## Creating a Trigger

Add a new trigger by specifying the keyword and the emoji(s) you want greed to add.

<CodeGroup>
  ```javascript Syntax theme={null}
  ,autoreact add (keyword) (emoji)
  ```

  ```javascript Example theme={null}
  ,autoreact add shadow 💀
  ,autoreact add greed 🔥
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/emogirlsllc/CcwPTmK_PLH2xYB8/images/image4%5B3%5D.png?fit=max&auto=format&n=CcwPTmK_PLH2xYB8&q=85&s=b5822f7b30273f945bcee53e0908bd1e" alt="Image4[3]" width="605" height="272" data-path="images/image4[3].png" />
</Frame>

<Info>
  **Multiple Emojis**: You can provide multiple emojis in a single trigger, and greed will add all of them.
</Info>

***

## Behavior & Logic

### Word Matching

<AccordionGroup>
  <Accordion title="Partial Matching">
    By default, greed will react if the keyword is found **anywhere** within the message content.
  </Accordion>

  <Accordion title="Exact Phrase (Quotes)">
    If your keyword contains spaces (e.g., "hello world"), you **must** wrap it in "quotes" for it to be recognized as a single trigger.
  </Accordion>
</AccordionGroup>

### Restrictions

Whitelisting allows you to control where and for whom triggers are active.

<AccordionGroup>
  <Accordion title="Channel Whitelisting">
    Limit autoreacts to specific channels. If no channels are added, they work globally.

    ```javascript theme={null}
    ,autoreact channels add #channel
    ,autoreact channels remove #channel
    ,autoreact channels list
    ```
  </Accordion>

  <Accordion title="Role Whitelisting">
    Only react to messages from members with specific roles.

    ```javascript theme={null}
    ,autoreact roles add @Role
    ,autoreact roles remove @Role
    ,autoreact roles list
    ```
  </Accordion>
</AccordionGroup>

***

## Limits & Management

### Server Limits

* **Free**: Up to 50 reaction triggers per server.
* **Premium**: Up to 500 reaction triggers per server.

### Management Commands

<AccordionGroup>
  <Accordion title="Organization">
    * `,autoreact list`: See all active triggers and their linked emojis.
    * `,autoreact remove (keyword)`: Delete a specific trigger by its keyword.
    * `,autoreact clear`: Remove all triggers from the server at once.
  </Accordion>
</AccordionGroup>
