---
title: "Deploy Honeypot"
description: "🍯 Catch and ban Discord spam bots by monitoring a \"#honeypot\" channel!"
category: "Bots"
url: https://railway.com/deploy/honeypot
---

# Deploy Honeypot

🍯 Catch and ban Discord spam bots by monitoring a "#honeypot" channel!

**[Deploy Honeypot on Railway](https://railway.com/template/honeypot)**

- **Creator:** RiskyMH
- **Category:** Bots
- **Total deploys:** 48

## Template content

### Honeypot https://devicons.railway.com/i/bun.svg

- **Source:** RiskyMH/Honeypot

## Documentation

# Deploy and Host Honeypot on Railway

A Discord bot to automatically catch and remove spam bots by monitoring a dedicated "#honeypot" channel.

## About Hosting Honeypot

Very simple, all you need to do is add the bot token in `DISCORD_TOKEN` and then add the bot to your server(s) and everything will be taken care of: 

1. [**Invite the bot**](https://discord.com/oauth2/authorize?client_id=YOUR_BOT_ID) to your server with appropriate permissions (Ban Members, Manage Channels, etc).
2. The bot will create a `#honeypot` channel on join, or you can set it up with `/honeypot`.
3. Configure the admin log channel and action (kick or ban) using the `/honeypot` command.
4. Ensure the bot’s highest role is above any self-assignable (color/ping) roles.
5. Any user posting in the honeypot channel will be banned or removed, and the action will be logged.

&gt; **Note:** Kick is default and is a softban (bans &amp; unbans) so Discord deletes their immediate messages 

## Common Use Cases

- Discord spam bots that flood all channels
- You simply want a channel that removed users who message in a channel

## Dependencies for Honeypot Hosting

- [Bun](https://bun.sh/) (v1.3+)
- A Discord bot token set in `DISCORD_TOKEN`
- See the GitHub for full info: https://github.com/RiskyMH/honeypot 

## Why Deploy Honeypot on Railway?

Because you want a simple one-click setup for your own custom &amp; personal edition.

But if you want, you can use the already hosted one at https://discord.com/discovery/applications/1450060292716494940

[**Learn more**](https://honeypot.riskymh.dev)


## Similar templates

- [Telegram JavaScript Bot](https://railway.com/deploy/5lRkWa) — A template for Telegram bot in JavaScript using grammY
- [Cobalt Tools [Updated Aug ’26]](https://railway.com/deploy/cobalt) — Cobalt Tools [Aug ’26] (Media Downloader, Converter & Automation) Self Host
- [Telegram Gateway](https://railway.com/deploy/railway-telegram-gateway) — Multi-bot Telegram webhook gateway with real-time WebSocket event streaming

Open this page in a browser: https://railway.com/deploy/honeypot
