1. Documentation
  2. Moderation

Auto-moderation

The nine rules, and what Bao does when they fire.


Bao's auto-moderation is built on rules, not on an AI. It is predictable: the same situation always produces the same decision.

The possible actions

Each rule has an action:

ActionEffect
DisabledThe rule does not apply
DeleteThe message is deleted, with no infraction
WarnAn infraction is counted, the message stays
Delete and warnBoth

Only an action that warns counts an infraction, and therefore feeds the escalating sanctions.

The rules

RuleSettings
Banned wordsYour word list (1000 maximum)
Repeated textNumber of repetitions (2 to 50) over a window (1 to 300 s)
Discord invitesInvite links to other servers
External linksAny outbound URL
Excessive capsPercentage of capitals (10 to 100%) beyond a minimum length
Excessive emojiMaximum per message (1 to 100)
Excessive spoilersMaximum per message
Excessive mentionsMaximum mentions per message
SpamNumber of messages (2 to 50) over a window (1 to 300 s)

Global settings

  • Ignore bots: do not moderate other bots.
  • Notify by direct message: the sanctioned member receives an explanation.
  • Log channel: where to record moderation actions.
  • Exempt channels and exempt roles: never moderated.
  • Infraction expiry: after how many days an infraction stops counting. 0 = never.

A word on tuning

Start with Delete alone on the noisy rules (caps, emoji), and reserve Delete and warn for the behaviour you genuinely want to sanction (spam, invites, banned words). Otherwise your members pile up infractions over trifles and your sanctions lose their meaning.