Bot-spam trap
A channel nobody should post in - spam bots and hacked accounts that post there are removed automatically.
New layout (closed beta): abilities, the Discord bot and tickets have new places there. See Abilities, the Discord bot and tickets in the new layout for where each page went.
Pick a channel nobody should post in. Whoever posts there anyway is dealt with automatically.
This module may not be available on your account yet (Beta Center).
Why it works
A hacked account or a spam bot posts the same message in every channel it can see, usually within a second. A real member reads the warning at the top of the channel and stays out.
#dont-post-here "Do not post in this channel"
|
someone posts --> bot, webhook, server owner, exempt role?
| -> left alone, message stays
|
+--> anyone else: message deleted (always)
|
+--> the penalty you chose, ONCE per burst
+--> the member is told why, privately
+--> a line in your record channel
"Once" matters: spam comes in bursts, and five messages must not mean five bans, five messages to the member and five log lines. Further posts within 30 seconds are only deleted.
Set it up
- Portal: Discord bot, then Bot-spam trap.
- Trap channels: pick up to five channels. Keep them near the top of your channel list, where a spam bot reaches them first.
- Roles the trap ignores: your staff.
- What happens: choose the penalty.
- Warning in the channel: write the warning, then post it in each trap channel. Saving the settings updates every posted copy.
- Switch the trap on.
Every setting
| Panel | Setting | What it does | Default |
|---|---|---|---|
| Trap channels | Trap channels | Up to five. | none |
| Roles the trap ignores | Up to 20. The server owner is always ignored. | none | |
| What happens | What happens to whoever posts there | Nothing more, They are timed out, They are kicked, They are soft-banned, They are banned. Their message is deleted either way. | They are timed out |
| Timeout length in minutes | Used when the member is timed out. | 60 | |
| On a ban or soft ban, also delete their messages from the last hours | 0 deletes nothing else. 168 is seven days, the most Discord allows. | 1 | |
| Extra line in the message the member receives (optional) | Added to the private message. | a standard line (see below) | |
| Record | Channel that records each catch | Empty: the Logging module's moderation channel. | none |
| Warning in the channel | Warning title | Do not post in this channel | |
| Warning text | This channel is a trap for spam bots. Anyone who posts here is removed automatically. |
The penalties
| Penalty | What happens |
|---|---|
| Nothing more | Only the message is deleted. |
| Timed out | Muted for the minutes you set. |
| Kicked | Removed; they can rejoin. |
| Soft-banned | Banned and unbanned at once: removed, with their recent messages everywhere, and free to rejoin once their account is their own again. Good for hacked accounts. |
| Banned | Removed for good, with their recent messages if you set hours. |
What the member is told
Before a timeout, kick or ban, the member gets a private message: they posted in a channel that is a trap for spam bots. Without your own extra line it adds: "If you did not post it yourself, your account was used by somebody else: change your password and switch on two-factor authentication."
When reviews are on, a ban or timeout message carries Ask for a review, so someone who posted by accident can ask to be let back.
If the penalty then fails, they get a correction: only their message was removed.
The record
Each catch is a line in your record channel: who, which trap channel, and what happened. A timeout, kick or ban is also recorded as a moderation action by "Winghub trap".
If a soft ban's unban step fails, the line says so in bold: the member is still banned and must be unbanned by hand.
Permissions
The bot needs Manage Messages in the trap channels, and Timeout Members, Kick Members or Ban Members for the penalty. Its role must sit above the members it acts on.
Troubleshooting
| You see | Why |
|---|---|
| "... did not happen ... The bot may be missing the permission, or its role sits below theirs." | Give the permission, or move the bot's role up. |
| A staff member was caught | Add their role to Roles the trap ignores. Only those roles count as staff here. |
Related
Last updated: 11/27/2026, 2:41:55 PM