Skip to main content

Overview

Auto-reply whenever a message matches a trigger word or phrase. Use it for the questions your members ask every day (where to get help, how to get a role, what the rules are), for greetings, or to react with an emoji when someone says a word. The trigger can be anywhere in the message or match it exactly, it can be limited to some channels and roles, and the reply can quote the member, delete the message or replace its own previous reply.
Chillet asks how to get help with an order and Petto replies with a mention and a link to the support channel

In Discord: a member asks for help and the autoresponder answers as a reply.

Commands

liam adds where are the rules with a reply to the rules channel and --reply, and Petto confirms it with the id, contains, Reply to message Yes, all channels and everyone

In Discord: a new autoresponder with its id and its settings.

liam adds test with an embed code and --reply --not_strict, and Petto confirms Type Embed code

In Discord: an autoresponder whose reply is an embed code.

liam edits 7b2d4e91 with --mode exact --ping and Petto answers that it was updated

In Discord: the greeting changes to exact match and notifies the author.

liam removes shout and Petto confirms it

In Discord: an autoresponder removed by its trigger.

Petto lists 5 of 75 autoresponders: how do i get help, good morning, petto, rules and shout with their ids and icons

In Discord: every autoresponder with its id, its match mode and the start of its reply, out of 75.

Petto shows 3f9a1c2e: contains, text, reply to message, all channels, everyone, its trigger and its reply

In Discord: all the details of one autoresponder.

liam resets and Petto answers that it removed all 5 autoresponders

In Discord: every autoresponder of the server deleted at once.

reset deletes every autoresponder in the server, use carefully.

The trigger and the reply

A comma ends the trigger, so the trigger can have spaces: !autoresponder add good morning, Hello!. A trigger in โ€œquotesโ€ works too, and so does the old way without a comma, where the trigger is the first word (!autoresponder add hi Hello there). A comma only ends the trigger when it comes before the first { of the reply, so commas inside an embed code are safe. The reply is plain text (with variables) or an embed code: text, up to 10 embeds and link buttons. The code is checked when it is saved: if Discord would refuse it, nothing is saved and the answer says why. Line breaks and quotes inside the code are kept.

Examples

Command
Result
liam asks how do I get help and Petto replies Hi @liam, open a ticket in support

In Discord: the help pointer answers as a reply.

Variables in replies

Replies, embed codes and saved embeds take every variable. Besides the usual member and server ones, an autoresponder has: Put a ! before a mention in a reply (!@Role, !{user.mention}) to show it without notifying anyone: see Silent mentions.

Flags

Flags go at the end of the command, after the reply.
Flags are only read at the end of the command, or before the reply. A --word inside an embed code stays part of the code.
Before, the trigger was always the first word. Now a comma with a space after it, before any {, ends the trigger. !autoresponder add hi Hello, friend makes the trigger hi Hello. Put a comma after the trigger (hi, Hello, friend) or quote it ("hi" Hello, friend) to be sure.

Match modes

The trigger can appear anywhere in the message.
The message must start or end with the trigger.
The message must match the trigger exactly.
The trigger is treated as a regular expression.

Scoping to specific channels

liam adds general and help to 3f9a1c2e and Petto says where it is active now

In Discord: the help pointer only answers in #general and #help.

liam removes help from 3f9a1c2e and Petto says where it is active now

In Discord: one channel taken out of the list.

liam clears the channels of 3f9a1c2e and Petto says it will respond in all channels

In Discord: the autoresponder answers in every channel again.

By default an autoresponder fires anywhere in the server. The id is the code of 8 letters and numbers that !autoresponder list shows (like 3f9a1c2e). channel clear removes the restriction back to everywhere. Members can be limited the same way: with roles, the autoresponder only answers members who have one of them.
liam adds the Regular role to 7b2d4e91 and Petto says it now requires one of those roles

In Discord: the greeting only answers members with the Regular role.

liam removes the Regular role from 7b2d4e91 and Petto says no role, everyone

In Discord: the role taken out; with no roles left, it answers everyone.

liam clears the roles of 7b2d4e91 and Petto says it will respond to everyone

In Discord: every role restriction removed at once.

Deleting the triggering message

The --delete flag (the delete_trigger option) removes the message that triggered the response, useful for keyword-triggered cleanup.

Sending as an embed

The reply can go inside a simple embed instead of plain text, without a saved embed: the embed option of the slash command (/autoresponder add with embed: True), or Send as an embed in the dashboard, where it can also have a title, a color and a footer.
Chillet asks when the next event is and Petto replies with an Events embed about game night with the footer Petto Land

In Discord: a reply sent as a simple embed, with the title, color and footer set in the dashboard.

Limits

A Free server can have 75 autoresponders and a Premium server 150. See Premium.

Dashboard

The same autoresponders are in Automation โ†’ Autoresponders of the dashboard: each one as a card with the trigger, Pettoโ€™s answer and its options, and Edit opens all of its settings (match mode, reply, the four checkboxes, plain text or embed with its title, color and footer, a saved embed, channels and roles). The form at the bottom adds one.
The Autoresponders section, 5 of 75, with good morning, how do i get help, petto, rules as a saved embed and shout, and the form to add one

Dashboard โ†’ Automation โ†’ Autoresponders: a card for each autoresponder, with the trigger, Petto's answer and its options.

The help autoresponder open with its trigger, contains, the reply, Reply directly checked, plain text or embed with title, color and footer, the saved embed and the channels and roles fields

Dashboard โ†’ Automation โ†’ Autoresponders: Edit opens every setting of one autoresponder.