AR
Create automatic responses to text triggers.

Usage:

y!ar <option> "{trigger}" "{response}"

AR Types

Command
Description
y!ar text
Yui will respond to messages that exactly match the trigger.
y!ar has
Yui will respond to messages that contain the trigger.
y!ar react
Yui will react to messages that exactly match the trigger.
y!ar reacthas
Yui will react to messages that contain the trigger.
y!ar delete
Yui will delete and respond to messages that exactly match the trigger.
y!ar random
Yui will respond to messages that exactly match the trigger with a response chosen randomly from a list set by the user.
y!ar pattern
Yui will use pattern matching to respond to triggers.

Other AR Commands

Command
Description
y!ar remove "<trigger>"
Removes the specified AR trigger.
y!ar list
Shows a list of the server's AR triggers.
y!ar clear
Permanently removes all AR triggers from the server.
Due to Discord's character limit, Yui can only display AR lists shorter than 2000 characters.

Pattern Matching

Trigger Placeholders

These placeholders can only be used in the trigger of an auto response.
Placeholder
Description
{?}
Wildcard. Can be replaced with any string of characters.
{word}
Wildcard word. Any string of characters with no spaces between them.
{prefix}
Yui's prefix in your server.

Response Placeholders

These placeholders can only be used in the response of an auto response.
Placeholder
Description
{1-9}
Will be replaced by the corresponding wildcard in the trigger message. (1 = first wildcard in the trigger message, etc.)
{channel.tag}
Will tag the channel the trigger is in.
{channel.name}
Will be replaced with the name of the channel.
{server.name}
Will be replaced with the name of the server.
{member.name}
Will be replaced with the nickname of the user who triggered the auto response.
{member.username}
Will be replaced with the username of the user who triggered the auto response.
{member.tag}
Will tag the user who triggered the auto response.

Example

Command
Trigger
Response
y!ar pattern "Have you ever been to {?}?" "I've been to {1}! There were tons of cool fish there!"
Have you ever been to the Sahara Desert?
I've been to the Sahara Desert! There were tons of cool fish there!
Copy link