Anti-Raid System
Squint's anti-raid system protects your server from coordinated attacks where multiple users join with identical or very similar profile pictures. It detects these patterns and automatically applies punishments.
Quick Start (5 Minutes)
Run
;antiraid enableSet detection threshold:
;antiraid config threshold 5Set punishment:
;antiraid config punishment banSet log channel:
;antiraid config logchannel #mod-logsCheck status:
;antiraid status
You're done! Read full setup below for advanced options.
Setup
Enable anti-raid protection:
;antiraid enable(Optional) Configure detection threshold:
;antiraid config threshold 5(Optional) Set punishment type:
;antiraid config punishment ban(Optional) Set a log channel:
;antiraid config logchannel #mod-logsView current status:
;antiraid status
Configuration
enabled: Toggles the entire anti-raid system on or off.threshold: The number of users with identical profile pictures joining within thetimeWindowto trigger a raid detection (default: 3).timeWindow: The time frame in minutes during which identical profile picture joins are counted (default: 5).punishment: The action taken against detected raiders:kick,ban,timeout, orrole.punishmentDuration: The duration in minutes fortimeoutpunishments (default: 10).punishmentRole: The ID of the role to assign ifpunishmentis set torole.exemptRoles: A list of role IDs that are exempt from anti-raid checks.logChannel: The ID of the channel where raid detections and punishments are logged.
Common Issues:
System is not detecting raids → Ensure the
thresholdis low enough and thetimeWindowis long enough to catch the pattern.Punishment fails → Check that the bot's highest role is above the target user's highest role and the bot has the necessary permissions (
Kick Members,Ban Members,Moderate Members).Legitimate users are being caught → Increase the
thresholdor add roles to theexemptRoleslist.Logs are not sent → Verify the
logChannelis set and the bot hasSend Messagespermission there.
Usage
Once enabled, the anti-raid system will monitor new member joins. If a raid pattern is detected, it will automatically apply the configured punishment to all users involved in the detected raid. All actions are logged to the specified logChannel.
Related Commands
;antiraid- Main command for managing anti-raid settings.;antinuke- General anti-nuke protection features.
Last updated
Was this helpful?