SudoBot ships with several independent auto-moderation systems that run in the background and act on rule-breaking behavior without requiring manual moderator intervention. Each system is configured inside your guild’s entry inDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/onesoft-sudo/sudobot/llms.txt
Use this file to discover all available pages before exploring further.
config/config.json and can be enabled or disabled independently.
All auto-moderation systems skip members who have been granted bypass permissions via the permission system. Bots are also excluded from most checks.
Anti-Spam
The Anti-Spam system (SpamModerationService) monitors messages from each user and triggers when they exceed a configured message-per-second threshold. When triggered, the bot applies a configurable moderation action such as a mute or a warn.
Enable Anti-Spam in config.json
Add or update the
antispam key inside your guild’s configuration object:Configure the threshold
limit— the maximum number of messages a user may send within thetimeframe.timeframe— the sliding window in milliseconds during which messages are counted.
Raid protection
The Raid Protection system (RaidProtectionService) watches for sudden spikes in new member joins. When the join rate exceeds the configured threshold within a set timeframe, the system locks down the server or takes another configured action.
Configure the threshold
threshold— the number of joins that triggers the protection.timeframe— the window in milliseconds in which joins are counted.
AI auto-moderation
The AI Auto-Moderation system (AIAutoModeration) uses the Google Perspective API to analyze message content for toxicity, insults, threats, and other harmful attributes. When a message’s score exceeds a configured threshold, the bot applies the configured actions.
Enable AI moderation via a rule
AI moderation is triggered through the
ai_scan rule type inside rule_moderation. See Moderation Rules for full details.The AI system applies internal rate limiting (queue size of 10) to stay within Perspective API quotas. Messages that exceed the queue are dropped silently rather than causing errors.
Anti-Join
The Anti-Join system (AntiMemberJoinService) automatically kicks or bans every new member that joins the server. It is useful when you need to temporarily close the server to new members during an ongoing raid or other emergency.
- Kick on join
- Ban on join
| Option | Type | Description |
|---|---|---|
behavior | "kick" | "ban" | What to do with new joins. |
ignore_bots | boolean | Skip bot accounts when they join. |
custom_reason | string | Reason shown in the infraction and DM. |
ban_duration | string | Duration string for temp-bans (e.g. "1d", "12h"). Only used when behavior is "ban". |
Verification system
The Verification system (VerificationService) gates new members behind a challenge before they can access the server. Verified members receive a configured role; unverified members are held in a restricted state until they pass or the entry expires.
Choose a verification method
The
method field controls how a new member proves they are human. Available methods include button (click a button), and other methods depending on your bot build. Check VerificationMethod in the source for the full list.