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

# Message Triggers

> Reply with a canned line whenever a keyword appears.

```text theme={null}
/trigger message keyword:gg response:Good game!
/trigger message keyword:"good morning" response:"Good morning {user}!"
```

Setting the same keyword again **replaces** the response rather than creating a duplicate, so editing
a trigger is just running the command with new text.

## Matching

| Message | Keyword `gg` | Fires |
| - | - | - |
| `gg` | `gg` | yes |
| `GG WP` | `gg` | yes |
| `suggest` | `gg` | no · inside a word |
| `gg, nice one` | `gg` | yes |

If two triggers could match the same message, both fire. Ordering is by keyword length, longest
first, so a `good morning` trigger wins over a `good` one on the same text.

## Response limits

* 1–500 characters.
* Sent as a plain reply to the message that triggered it.
* Responses don't ping: mentions typed into the response are sent as text.

## Managing

```text theme={null}
/trigger list
/trigger remove type:message keyword:gg
```

`/trigger list` shows every trigger with its keyword and type. Removing a message trigger leaves a
reaction trigger on the same keyword untouched.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.