Deploy Discord Honeypot

An easily-deployable Discord bot that automatically bans spammers.

Deploy Discord Honeypot

discord-honeypot

omznc/discord-honeypot

Just deployed

/data

Deploy and Host Discord Honeypot on Railway

Discord Honeypot is a Discord bot that auto-creates a #honeypot channel, lets admins tag any text channel as a trap, and bans anyone who posts there while purging their last 24h of messages. Honeypot channel IDs are persisted in SQLite so the traps survive restarts and deployments.

About Hosting

Using this template on Railway sets up a Bun-powered bot with a persistent SQLite database mounted on a Railway volume. You provide the Discord bot token and the application ID. On boot the bot registers slash commands, auto-creates a honeypot channel if missing, enforces bans for posts inside honeypot channels, and keeps channel IDs in HONEYPOT_DB_PATH so data sticks across deploys.

Railway handles build, secrets, and scaling; you just supply env vars and attach a volume.

Common Use Cases

  • Auto-ban spam accounts the moment they speak in a flagged channel
  • Trap compromised staff accounts by designating sensitive channels as honeypots
  • Run a low-maintenance moderation tripwire alongside existing bots

Dependencies for Discord Honeypot Hosting

  • Bun runtime (install via https://bun.sh)
  • Discord bot token and application ID with Guilds and GuildMessages intents enabled
  • Bot permissions: View Channel, Send Messages, Manage Messages, Read Message History, Ban Members, Manage Channels
  • SQLite path for persistence, e.g. HONEYPOT_DB_PATH=/data/honeypots.sqlite on a Railway volume (this is on by default if you're deploying on Railway)

Deployment Dependencies

Implementation Details

bun install

DISCORD_TOKEN=your_bot_token \
bun run src/bot.ts

Or you can use any of the releases on GitHub -> https://github.com/omznc/discord-honeypot/releases

Why Deploy Discord Honeypot on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Discord Honeypot on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

discord-honeypot

omznc/discord-honeypot

More templates in this category

View Template
Telegram JavaScript Bot
A template for Telegram bot in JavaScript using grammY

View Template
Cobalt Tools [Updated Dec ’25]
Cobalt Tools [Dec ’25] (Media Downloader, Converter & Automation) Self Host

View Template
DiscordJS bot
A basic Discord bot written in JavaScript