DEV Community

nexicturbo
nexicturbo

Posted on

Build a Production-Ready Discord Bot in 5 Minutes (Node.js + discord.js v14)

Every Discord bot tutorial starts the same way: 40 minutes of boilerplate before you get anything useful running.

I got tired of that. So I built a starter kit.

The Free Version (3 Commands)

I open-sourced a lite version with 3 essential slash commands:

  • /ping — Latency check with WebSocket stats
  • /serverinfo — Full server stats (members, channels, boosts)
  • /userinfo — User profile with roles and account age

It uses discord.js v14, auto-loads commands and events, and follows the same architecture pattern used by bots serving thousands of servers.

Quick start:

git clone https://github.com/nexicturbo/discord-bot-starter-lite.git
cd discord-bot-starter-lite
npm install
# Add your token to .env
node deploy-commands.js
node index.js
Enter fullscreen mode Exit fullscreen mode

That's it. Working bot in under 5 minutes.

GitHub: nexicturbo/discord-bot-starter-lite

The Full Kit (10 Commands + Moderation)

If you want the complete package — moderation tools, polls, reminders, deploy guides — I also built a full production-ready kit with:

  • 10 slash commands including kick, ban, mute, clear, avatar, poll, remind
  • Permission utilities with role hierarchy validation
  • Auto-loading architecture — just drop files in folders
  • Deploy guides for Railway, Render, VPS, Docker
  • MIT licensed — use for client work, communities, or bots you sell

👉 Get the Full Kit ($19)

Architecture Overview

Both versions follow the same clean structure:

├── index.js              # Bot entry point
├── deploy-commands.js    # Slash command registration
├── commands/             # One file per command
├── events/               # Event handlers
└── .env.example          # No hardcoded secrets
Enter fullscreen mode Exit fullscreen mode

Commands and events auto-load from their folders. Want to add a new command? Create a file in commands/, restart the bot. Done.

Why I Built This

I've built Discord bots for various communities and kept rewriting the same boilerplate every time. The discord.js docs are great but they don't give you a production-ready starting point.

This kit is that starting point. Clone it, customize it, deploy it.


Free version: GitHub
Full kit: Gumroad ($19)

Happy building! 🤖

Top comments (0)