-
Notifications
You must be signed in to change notification settings - Fork 0
Automatic Responses
You can create an automatic response using /automaticresponse create
, where the alias
argument is used to reference it and the regex
argument is the regular expression that will trigger the automatic response. When specifying the regular expression, make sure to escape every backslash (\\
) because JavaScript consumes them by default. In order to fill it with content, you must use the /automaticresponse update
command.
You can display the raw JSON data of an automatic response using /automaticresponse read
. If you don't specify the alias
argument, the bot will send a list of all automatic responses instead.
You can update an automatic response using /automaticresponse update
, where path
is the path to the object or value which you want to replace (separated using dots, e.g. embedData.author.name
) and value
is the new value (must be valid JSON). Not providing a value will delete the JSON key, and updating a non-existent key will automatically create it.
An automatic response can contain the following data:
In order to create the embed object, visit https://leovoel.github.io/embed-visualizer/.
When specifying the regular expression, make sure to escape every backslash (\\
) because JavaScript consumes them by default. Every instance of {user}
in the embed and message will be replaced with a mention of the user that triggered the automatic response.
You can delete an automatic response using /automaticresponse delete
.