Discord Bots
Discord bots start out as "a few lines of code for a command" and quietly turn into a completely different engineering problem as the server grows. The articles in this category cover both ends of that journey: from registering your first slash command to managing rate limits on servers with thousands of members, persisting data properly, designing a permission architecture, and hosting without downtime. Most examples use discord.js, but the reasoning is library-agnostic. Alongside the classic needs — moderation automation, role assignment, giveaways, ticket systems — I also write about the typical mistakes that make a bot lock itself up, because writing a bot is easy and keeping it alive for months is a different job.
Discord Scheduled Messages: Automate Sending with node-cron
Build a Discord scheduled message system with node-cron: a bot that sends automatic messages at a set time in the right timezone.
Discord Log Bot: Logging Server Events with discord.js
Build a discord log bot that records message deletions, member joins and leaves, and role changes step by step with discord.js v14.
Discord Poll Bot: Button Voting and Live Results
Build a Discord poll bot with discord.js v14: button voting, duplicate-vote prevention, live result bars and persistent storage.
Discord Giveaway Bot: Timed Giveaways and Winner Picking
Build a Discord giveaway bot with discord.js v14: button entries, timed giveaways, fair winner selection and persistent storage.
Discord Bot Cooldown and Spam Protection Guide
Build a Discord bot cooldown system to set command delays and handle spam and rate limits cleanly with discord.js.
Discord Bot Token Security and Using .env
Stop your Discord bot token from leaking: a practical guide to .env and .gitignore practices, token rotation and secure deployment.
Discord Bot VPS Setup: Run It 24/7 with pm2
A step-by-step Discord bot VPS setup: prepare an Ubuntu server, install Node.js and run the bot permanently with pm2 so it survives reboots.
Discord Bot Hosting: Free and Paid 24/7 Options Compared
We compare Discord bot hosting options: VPS, Railway, Pterodactyl and free tiers on cost, uptime and setup effort.
Discord Embed Design: Polished Messages with EmbedBuilder
What is a Discord embed and how do you add color, fields and a thumbnail with EmbedBuilder? A practical guide to polished, readable bot messages.
Discord Modal Forms: Collect User Input the Right Way
Build a Discord modal form with discord.js: open a popup, validate fields and handle the submit cleanly, step by step.
Discord Bot Buttons and Select Menus: A Guide
Add Discord bot buttons and string select menus to build interactive messages: ActionRow, customId and interaction handling, step by step.
Discord Bot SQLite Integration with better-sqlite3
A step-by-step guide to adding a local SQLite database to a lightweight Discord bot and writing fast, safe queries with better-sqlite3.
Discord Bot MongoDB: Persist Data with Mongoose
Discord bot MongoDB setup: learn step by step how to persist user data with Mongoose using schemas, models and upserts.
Discord Welcome Bot: Personalized Canvas Image
Build a Discord welcome bot that generates a personalized greeting image for every new member using discord.js and Canvas, step by step.
How to Build a Discord Reaction Role (Self-Role) Bot
Build a Discord reaction role bot with discord.js so members can self-assign roles by clicking an emoji or a button, step by step.
Discord Ticket Bot: Button-Based Support System
Build a discord ticket bot that opens a private channel on a button click: permission overwrites, a close button and duplicate checks, step by step.
Discord Moderation Bot: Ban, Kick and Mute Commands
Build a permission-aware Discord moderation bot: ban, kick and timeout commands with role-hierarchy checks and audit log reasons.
Discord Level Bot: XP System and Role Rewards
Build a Discord level bot from scratch with discord.js: XP per message, rank cards and automatic role rewards.
Discord Economy Bot: Currency, Daily Rewards & Shop
Build a Discord economy bot from scratch with balance, daily rewards and shop commands using discord.js, step by step.
Build a Discord Music Bot with discord.js and Lavalink
How to build a Discord music bot: voice with @discordjs/voice, a solid play queue via Lavalink, and slash commands, step by step.
Creating Discord Slash Commands (discord.js v14)
Learn to build Discord slash commands from scratch with discord.js v14: SlashCommandBuilder, a REST deploy script, the interactionCreate event and working code examples.
Automate Your Discord Server with Bots: Moderation & Growth
Auto-role, welcome, moderation, event announcements and game-DB integration: a guide to automating your Discord server with bots.
A Discord Bot in Python: A Getting-Started Guide with discord.py
Slash commands with discord.py 2.x, the command tree and connecting to a game database with aiomysql: building a Discord bot in Python.
Building a Discord Bot with Node.js: Step by Step (discord.js)
From your first slash command with discord.js v14 to a bot that connects to a game database: building a Discord bot with Node.js, step by step.