# Autoresponder

> Reply automatically to messages that match a trigger

An autoresponder watches for messages containing your trigger phrases and replies with a set message.

<discord-messages class="not-prose">
	<discord-message profile="member">who do i contact for support?</discord-message>
	<discord-message profile="aethor">Open a ticket in #support and a staff member will help you.</discord-message>
</discord-messages>

## Setup

Use `/autoresponder create` with a `name`, the reply `content`, and a comma-separated list of `triggers`. Manage them later with `/autoresponder edit`, `/autoresponder delete` and `/autoresponder list`. The commands are for members with Manage Messages.

<Cmd cmd="/autoresponder create name:support content:Open a ticket in #support. triggers:help,support,how do i" />

Options you can set:

- `method`: how many triggers must be present. One (any trigger), All (every trigger), Double (at least two), Some (at least half, rounded down), or None (paused).
- `case_sensitive`: off by default.
- `whole_word`: off by default, so a trigger matches inside larger words. Turn it on to match whole words only.
- `channel`: restrict the responder to a single channel.

## Reviewing your responders

Run `/autoresponder list` to see every responder's method, trigger preview, channel restrictions and matching flags:

<Cmd cmd="/autoresponder list" />

<discord-messages class="not-prose">
	<discord-message profile="aethor">
		<discord-embed slot="embeds" embed-title="Auto-responders" color="#41ebf4">
			<discord-embed-fields slot="fields">
				<discord-embed-field field-title="#1-2">
					<code>support</code> (One): help, support, how do i (+2 more) | all channels | Case-sensitive: No; whole word: Yes<br />
					<code>rules</code> (All): rules, guidelines | 1 channel: #welcome | Case-sensitive: No; whole word: No
				</discord-embed-field>
			</discord-embed-fields>
		</discord-embed>
	</discord-message>
</discord-messages>

## Limits and permissions

- Free servers get 10 autoresponders, Premium gets 50. Each can have up to 10 triggers of 50 characters, and the name is capped at 32.
- Using the Some method with a single trigger makes it fire on every message, because half of one rounds down to zero. Use at least two triggers with Some.
- With whole word off, a trigger like `hi` matches inside `this`. Keep that in mind for short triggers.
- Only the first matching autoresponder replies to a message.
- There is a limit of 5 automatic replies per channel per minute. Extra matches in that window are skipped silently.
- The reply is sent as written. It has no placeholders or variables.
- Messages in a suggestions channel, and messages from blacklisted users, never trigger a response.

After creating or editing a responder, send one matching message in the configured channel and one non-matching message. Only the first matching responder replies, so overlapping triggers can hide later responders.
