Skip to main content
Three ways to make the bot react to what people type.

Response triggers

An autoresponder. When a message matches the trigger, mira replies.
Requires Manage Messages. Aliases: autoresponse, autoresponder, responder, trigger, ar. Responses are full scripts, so embeds, containers, buttons and variables all work.

How triggers are matched

Every response, reaction and previous-reaction trigger has a match type. Set it when you create the trigger with --match, or change it later with the match subcommand:
Responses and reactions default to substring; previous reactions default to exact. match is aliased to matching and mode, and the flag accepts the obvious synonyms (--match contains, --match strict, --match prefix).
word is almost always what you want for short triggers. substring on gm fires on “gmail” and “ygm”; word doesn’t.

Restricting where they fire

Both toggle. Once a trigger has any channel restriction it fires only in those channels; same for roles. Aliases: limit, exclusive.
Restrict anything remotely annoying to one channel. An autoresponder that fires server-wide on a common word gets old within a day, and people will start triggering it on purpose.

Reaction triggers

Instead of replying, react.
Requires Manage Messages. Aliases: react, rt.

React to everything in a channel

Every message in that channel gets the reaction. The standard setup for a showcase channel — see also gallery channels.

Reacting to the previous message

When someone types the trigger, the reaction goes on the message before theirs. So typing “lmao” puts 💀 on the message that was actually funny.
Aliases: previousreaction, prt, pr.
This is one of those features that seems pointless until a server starts using it, at which point it becomes the main way people react to things.

Command shortcuts

Map a word to a full command, including arguments.
Requires Manage Server. Aliases: alias, shortcuts, aliases. {0} is replaced with whatever the member types after the shortcut. So !mod @jake becomes !role @jake @Moderator. Useful shapes:
Shortcuts inherit the permissions of the command they run. !shortcut add ban2 ban {0} doesn’t let non-moderators ban people — they still need Ban Members, or a fake permission.

Choosing between them

Command reference