Ammit Portal
Shop Sign in
Feature overview

Automations

Premium

Reply automatically to certain messages, add reactions and clean up old messages in a channel, directly from Discord.

At a glance

Availability
Premium
In the portal
No page. Automations are managed with Discord commands.
Access required
Custom commands page (default: Administrator or Manage Server)

Overview

With automations, Ammit takes care of repetitive tasks. It replies to messages that contain a keyword. It can also react to each new message in a channel, or regularly delete its old messages.

They are managed with the /auto-replies, /auto-reactions, and /cleanup commands. To schedule a message from Discord, the /schedule command is presented in the Posts sheet, Communication section.

How it works

Ammit examines every new message posted by a member. It ignores messages from bots and webhooks. Reactions and cleanup apply to the channels you choose, whereas automatic replies apply to the whole server.

Automations require Premium. Without Premium, Ammit stops applying them, but keeps them. They resume as soon as the server is Premium again. The list and remove subcommands remain usable in all cases.

Automatic replies

An automatic reply consists of a keyword, a word or phrase, and the reply text. When a message matches the keyword, Ammit replies to it with this text, without mentioning its author.

To create one, type /auto-replies add. Enter the word or phrase in the keyword option, then the text in the response option. The mode option chooses how Ammit spots the keyword.

ModeAmmit replies when
ContainsThe message contains the trigger as whole words. A trigger “ip” therefore does not respond to the word “equipment”. This is the default mode.
ExactThe whole message is identical to the trigger.
Starts withThe message starts with the trigger.

Ammit compares texts without regard to capital letters, accents, or extra spaces. It examines replies in the order they were created and answers only with the first one whose trigger matches. The same reply is not repeated in a channel within 30 seconds.

The text of the reply is sent as it is, without variables, and its mentions notify no one. Type /auto-replies list to see the replies with their numbers, then /auto-replies remove with that number to delete one.

Automatic reactions

Ammit adds the same reactions to every new message in a channel, for example a thumbs up and a thumbs down in a suggestions channel.

Type /auto-reactions add, choose the channel in the channel option, then enter the emojis in the emojis option, separated by spaces. You can enter 5 at most, Discord emojis or custom emojis. Ammit adds them in the order given. To change a channel's emojis, run the command again. The new list replaces the old one.

If Ammit cannot use one of the emojis, for example a custom emoji deleted since, it stops there for that message. Type /auto-reactions list to see the channels concerned, and /auto-reactions remove to stop reactions in a channel.

Periodic cleanup

Ammit regularly deletes a channel's messages once they exceed the age you choose. Cleanup suits, for example, a fast-paced chat channel or a channel reserved for bot commands.

Type /cleanup add, choose the channel in the channel option, then enter the age in the age option, between 10 minutes and 13 days, for example “30m”, “6h” or “2j”. To change a channel's age, run the command again.

Ammit checks each channel every 10 minutes and deletes at most 200 messages per run. It keeps pinned messages. Each run that deletes messages is noted in the server's Event log, Messages category. Type /cleanup list to see the cleaned channels and their age, and /cleanup remove to stop cleanup in a channel.

Discord commands

Discord commandWhat it does and optionsRequired permissions
Regularly delete a channel's old messages
  • channelChannel concerned
  • ageAge from which a message is deleted: 30m, 6h, 2j
Edit access to the Custom commands page (default: Administrator or Manage Server)
Manage Messages
List channels cleaned automaticallyRead access to the Custom commands page (default: Administrator or Manage Server)
Stop cleaning a channel
  • channelChannel concerned
Edit access to the Custom commands page (default: Administrator or Manage Server)
React automatically to a channel's messages
  • channelChannel concerned
  • emojisEmojis separated by spaces (5 maximum)
Edit access to the Custom commands page (default: Administrator or Manage Server)
List automatic reactionsRead access to the Custom commands page (default: Administrator or Manage Server)
Stop a channel's automatic reactions
  • channelChannel concerned
Edit access to the Custom commands page (default: Administrator or Manage Server)
Reply automatically to a keyword
  • keywordKeyword or phrase
  • responseReply text
  • modeOptionalHow to match the keyword (“contains” by default)ContainsExactStarts with
Edit access to the Custom commands page (default: Administrator or Manage Server)
List automatic repliesRead access to the Custom commands page (default: Administrator or Manage Server)
Delete an automatic reply
  • numberNumber shown by /auto-replies list
Edit access to the Custom commands page (default: Administrator or Manage Server)

Required permissions

These commands require access to the Custom commands page: Read for /auto-replies list, /auto-reactions list and /cleanup list, Edit for the others. Members who have the Administrator permission always have this access, and by default so do those who have the Manage Server permission. Other roles and members receive it in Team and access. Ammit checks this access itself, even if the command permissions were changed in Discord. The /cleanup add command also requires the Manage Messages permission.

To reply, Ammit needs the Send Messages and Read Message History permissions in the channel. To react, it needs Add Reactions and Read Message History. To clean up a channel, it needs Manage Messages and Read Message History. Without these last two permissions, Ammit refuses to create the cleanup and leaves the channel aside during its checks.

Limits

  • A server has at most 50 automatic replies and 10 cleaned channels. A channel receives at most 5 automatic reactions.
  • The trigger is 2 to 100 characters long, and the reply text 1,500 characters at most.
  • Reactions and cleanup only concern text channels, not the threads they contain.
  • Cleanup only deletes messages less than 14 days old, because Discord does not bulk-delete older messages.
  • If messages in a channel arrive faster than Discord accepts reactions, some are left without a reaction.
  • When Ammit is under heavy load, it may skip the reply or reactions to a message. Premium servers are then handled first.

Frequently asked questions

Why does Ammit not respond to a message that contains the keyword?

In Contains mode, the trigger must appear as whole words. Ammit also does not reply if the same reply has just been sent in that channel, or if a reply created before it already matches the message. Messages from bots are ignored.

Why do old messages remain in a cleaned channel?

Ammit keeps pinned messages and does not delete those older than 14 days. It also deletes at most 200 messages every 10 minutes, so a very busy channel is emptied over several runs.

Learn more