Ledra Docs

AutoMod commands

15 commands under /automod — rules, thresholds, word filter, exemptions.

Everything lives under /automod. Configuration needs Administrator; the read-only commands need Moderator.


/automod status#

Moderator. The full picture: main switch, whether messages get deleted, the punishment timeout, and for each rule its state, action and thresholds.


/automod toggle#

The main switch. With it off, no rule runs.

Option Required Description
enabled yes Should AutoMod be active?
/automod toggle enabled:true

/automod rule#

Enable or disable one rule and pick its punishment.

Option Required Description
rule yes spam · mentions · invites · links · caps · words
enabled yes Should the rule be active?
action no none · delete · warn · timeout · kick · ban
/automod rule rule:spam enabled:true action:timeout
/automod rule rule:invites enabled:true action:delete

Leaving action out keeps the current one. If the main switch is off, the reply reminds you.

Action Effect
none Log only
delete Delete the message
warn Delete + a warning with a case number
timeout Delete + mute
kick Delete + kick
ban Delete + ban

/automod limits#

Adjust thresholds. Every option is optional; pass only what you want to change, but at least one.

Option Range Default Applies to
spam_messages 2–30 5 Spam
spam_seconds 1–60 5 Spam
mention_limit 1–50 5 Mentions
caps_percentage 30–100 70 Caps
caps_min_length 1–500 12 Caps
timeout_minutes 1–40320 10 The timeout action
delete_messages true/false true All rules
/automod limits spam_messages:7 spam_seconds:10
/automod limits timeout_minutes:30

/automod exemptlevel#

Which staff level AutoMod never punishes.

Option Required Description
level yes nobody · moderator · admin

Default is nobody — AutoMod applies to everyone.


Word filter#

/automod word add#

Option Required Description
word yes Word or phrase, 2–100 characters, case-insensitive

Adding words does nothing until the words rule is enabled; the reply says so.

/automod word remove#

Option Required Description
word yes The word to remove

/automod word list#

Moderator. Every filtered word.

/automod word clear#

Delete the whole list. Reports how many were removed.


Used by the links rule: everything is blocked except these domains.

/automod domain add#

Option Required Description
domain yes e.g. youtube.com, 3–100 characters

You can paste a full URL — https://www.youtube.com/watch?v=x is stored as youtube.com.

/automod domain remove#

Option Required Description
domain yes The domain to remove

/automod domain list#

Moderator. All allowed domains.


Exemptions#

/automod exempt add#

Option Required Description
channel no* Channel AutoMod should ignore
role no* Role AutoMod should ignore

* at least one of the two.

/automod exempt add channel:#memes
/automod exempt add role:@Trusted
/automod exempt add channel:#bot-spam role:@Bots

/automod exempt remove#

Same options. Removes the exemption again.

/automod exempt list#

Moderator. Exempt channels, exempt roles, and the current staff exemption level.

AutoMod guide

Ledra documentation. Everything here describes the hosted bot.