Lumabot

Moderation and security · Auto-moderation

Antiraid

Stop a rogue or compromised account from wrecking the server.

Overview

Antiraid watches what people do, and stops anyone who does too much, too fast. Typical cases: a compromised moderator account banning everyone, a bot deleting every channel, or someone flooding the chat. Instead of waiting for you to notice, the bot counts the actions, undoes them and sanctions the author.

How a rule works

Everything is built from rules. A rule has three parts: the modules it watches, the duration it counts over, and the thresholds that say what happens.

A rule: bans and kicks, over 10 minutes

What the urgent log shows

  1. 1A member does something one of the rule's modules watches, for example a ban.
  2. 2The bot counts that member's actions across all the rule's modules during the duration (10 minutes in the example below).
  3. 3When the count reaches a threshold, the bot undoes the action when it can (it lifts the ban, deletes the invite...), applies that threshold's sanction, and writes it in the urgent log.
  4. 4Further actions keep triggering it, as long as the count stays at or above the threshold.

The sanctions

warn
Only logs it, nothing happens to the member. Useful as a first, silent step.
timeout
Times the member out for 10 minutes.
kick
Removes the member from the server.
ban
Bans the member.

What a rule can watch

Twenty-nine modules, in families. Pick as many as you want in one rule; they share the same count.

Members
antiban, antiunban, antikick
Roles
antirolecreate, antiroledelete, antiroleupdate, antiaddrole
Channels and threads
antichannelcreate, antichannelupdate, antichanneldelete, antithreadcreate, antithreadupdate, antithreaddelete
Webhooks and invites
antiwebhookcreate, antiwebhookupdate, antiwebhookdelete, antiinvitecreate, antiinviteupdate, antiinvitedelete
Voice
antimove, antideco, antimute, antideaf
Server
antiguildupdate (settings changed) and antibot (a bot added).
Messages
antispam, antieveryone, antilink and antibadword, explained below.

The message modules

antispam
5 messages from the same member within 3 seconds: the bot deletes them, tells the member to stop, and counts one infraction. It only runs while an enabled rule contains antispam.
antieveryone
A message that mentions @everyone or @here is logged and counted. The message is removed and reposted without the mention only once a threshold is reached.
antilink, antibadword
Each message caught by the Antilink or Badwords filters counts one infraction. See their pages.

Setting it up

/guild antiraid needs the Administrator permission. The first time, it creates an empty rule. A new rule does nothing until you give it modules and at least one threshold, and enable it. Premium decides how many rules you can have.

/guild antiraid

Lists your rules. Edit opens a rule, toggle turns it on or off.

Premium and limits

Need a hand?

Our support server is the fastest way to get help or suggest a feature.