A Discord bot to automatically catch and remove spam bots by monitoring a dedicated "#honeypot" channel.
- Invite the bot to your server with appropriate permissions (Ban Members, Manage Channels, etc).
- The bot will create a
#honeypotchannel on join, or you can set it up with/honeypot. - Configure the admin log channel and action (kick or ban) using the
/honeypotcommand. - Ensure the bot’s highest role is above any self-assignable (color/ping) roles.
- Any user posting in the honeypot channel will be banned or removed, and the action will be logged.
ⓘ Note: Kick is default and is a softban (bans & unbans) so Discord deletes their immediate messages
Extra info
Spammers and compromised accounts often target all channels at once, especially from accounts already inside your server. This bot makes it easy to automatically spot and remove these accounts. When someone posts in the honeypot channel, the bot acts immediately - removing them and deleting their messages before they can spread spam further. This saves you and your moderators time, reduces spam exposure to your community, and keeps your server running smoothly.
"The bot that shouldn't need to exist" - someone, probably
Options you can enable to avoid the bots better ⓘ
- Channel Warmer: Keep the honeypot channel active (every day)
- Random Channel Name: Randomize the honeypot channel name (every day)
- Random Channel Name (chaos): Randomize the honeypot channel name with random characters (every day)
- No Warning Msg: Don’t include a warning message in the #honeypot channel
- No DM: Don’t DM the user that they triggered the honeypot
- Reinvite: In DM message include a link to be able to rejoin
- Timeout First: Before banning/kicking, timeout user for 1hr (will persist when they rejoin)
- Only More Recent Delete: Instead of deleting last 1hr, only do 15min
- Many Honeypots: Create multiple honeypot channels to increase chances of usage
ⓘ For best results, position your #honeypot channel near the top of your server list - recent spam bots often target the first few channels available. Consider renaming the trap channel to something less predictable, like #pls-dont-chat-here, to avoid automated bots that blacklist "honeypot" by name. Always ensure the bot’s role is ranked above standard member roles; this ensures it has the authority to remove problematic accounts. Explore the experimental features for additional defenses against evolving bot tactics, and enjoy a cleaner, safer community - so you can say goodbye to unwanted bots! 🎉
- Bun (v1.3+)
- Discord bot token (set as
DISCORD_TOKENenvironment variable)
$ bun install
$ bun start # or `bun dev`- Railway Template
bun run startdocker compose up -d(usingghcr.io/riskymh/honeypot)
Or you can just use my hosted version by inviting it to your server: Invite Link