Documentation · Discord Bot

All pages

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

  1. Portal: Discord bot, then Bot-spam trap.
  2. Trap channels: pick up to five channels. Keep them near the top of your channel list, where a spam bot reaches them first.
  3. Roles the trap ignores: your staff.
  4. What happens: choose the penalty.
  5. Warning in the channel: write the warning, then post it in each trap channel. Saving the settings updates every posted copy.
  6. Switch the trap on.

Every setting

PanelSettingWhat it doesDefault
Trap channelsTrap channelsUp to five.none
Roles the trap ignoresUp to 20. The server owner is always ignored.none
What happensWhat happens to whoever posts thereNothing 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 minutesUsed when the member is timed out.60
On a ban or soft ban, also delete their messages from the last hours0 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)
RecordChannel that records each catchEmpty: the Logging module's moderation channel.none
Warning in the channelWarning titleDo not post in this channel
Warning textThis channel is a trap for spam bots. Anyone who posts here is removed automatically.

The penalties

PenaltyWhat happens
Nothing moreOnly the message is deleted.
Timed outMuted for the minutes you set.
KickedRemoved; they can rejoin.
Soft-bannedBanned 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.
BannedRemoved 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 seeWhy
"... 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 caughtAdd their role to Roles the trap ignores. Only those roles count as staff here.

Last updated: 11/27/2026, 2:41:55 PM