Small Discord servers usually face a frustrating choice: install five separate bots that each demand their own dashboard, paywalls, and permission tweaks, or wire together a messy custom script that breaks every time Discord updates its API.
I built NovaBot to give small communities a single, self-hosted JavaScript Discord bot backed by a local SQLite database. No external database server, no SaaS subscription, and no bloated microservices, just a clean Node.js project you can run locally or in Docker and shape around your server's actual habits.
Why a Local SQLite Bot Fits Small Communities
When you run a bot for a tight-knit group, friend server, or niche community, reliability and simplicity matter more than horizontal scaling. A standalone database service adds extra moving parts, extra memory overhead, and another thing to back up.
Storing state in a local SQLite file keeps everything self-contained:
Zero database hosting friction: Your server settings, warning history, XP progress, giveaways, reminders, and community nominations live in one local file that persists across restarts.
Straightforward backups: Backing up your bot's state is as simple as copying the database file or mounting a persistent volume in Docker.
Fast local iteration: You can test slash commands, button interactions, and scheduled tasks on your own machine before rolling updates out to your server.
What NovaBot Does Out of the Box
Rather than splitting essentials across multiple bots, NovaBot groups everyday server tools into one cohesive codebase:
Moderation & Warnings: Handles bans, kicks, timeouts, message clearing, slowmode, channel locks, and warning histories, including an automatic timeout once a member hits your configured warning threshold.
Lightweight Automod: Filters out unwanted Discord invite links, and excessive user mentions before they clutter chat.
Leveling & Role Rewards: Tracks chat activity for XP, displays ranks and leaderboards, and grants roles automatically when members reach specific levels.
Support Tickets: Spins up private ticket channels via a button click and sends a transcript of the recent messages to a log channel when closed.
Giveaways & Polls: Runs button-based giveaways with multi-winner selection, rerolls, and quick reaction polls so members can vote without leaving Discord.
Reminders & Starboard: Lets users schedule reminders and surfaces popular messages in a dedicated starboard channel once they reach your reaction threshold.
Nova Replay (Weekly Community Recap): Lets members nominate memorable public messages, vote on favorites, and publish a weekly digest of top-voted moments with links back to the original posts—without archiving private channels or scraping every message.
Server Utilities: Includes welcome messages, autorole assignment, audit logs, and everyday commands like /ping, /avatar, and /serverinfo.
How the Project Is Structured
One of the goals with NovaBot was keeping the JavaScript layout easy to read and extend without over-engineering it:
Entry & Command Registration: Separate scripts handle starting the Discord client and syncing slash command definitions with Discord.
Database Layer: A central module manages schema setup and helper queries for settings and community data.
Feature-Grouped Handlers: Slash commands, Discord events, and button interactions are organized cleanly so you can trace how a user action flows from click to database update.
Shared Utilities & Checks: Reusable helpers handle tasks like leveling math, reminder delivery, and logging, backed by automated tests and a command/handler sanity check.
Adding a new slash command is designed to be low-friction: create a command module under the commands directory with its definition and execution handler, run the command deploy step, and Discord picks up the updated interface.
Getting Started Locally or with Docker
If you want to run your own instance, the workflow is intentionally straightforward:
Create the Discord App & Bot: Register an application in the Discord Developer Portal, grab your Application ID and bot token, enable the required gateway intents (Server Members Intent and Message Content Intent), and invite the bot to a test server with only the permissions you need.
Install & Configure: Install dependencies with Node.js 20, copy .env.example to. env, and add your DISCORD_TOKEN, CLIENT_ID, and optional GUILD_ID (handy for near-instant command updates in a test server).
Deploy Commands & Run: Register your slash commands, start the bot, and test basic commands like /ping or /help.
Configure Your Server: Set up your log, welcome, starboard, and support channels via slash commands, configure auto mod and level roles, and inspect your active settings.
If you prefer containerized deployment, building the image and running it with a persistent volume attached to the data directory keeps your SQLite database safe across container restarts.
Designing for Privacy and Clarity
A small detail I cared about -especially with Nova Replay- is respecting boundaries. Instead of logging every message in the server by default, Nova Replay only records explicit nominations and votes from channels visible to the whole server and skips messages that were deleted or aren't accessible. That keeps the feature fun and community-driven without turning the bot into an indiscriminate chat archive.
Wrapping Up
NovaBot started as a practical way to put everyday community tools under one roof in JavaScript without paying for external services or maintaining heavy infrastructure. If you run a smaller Discord server or like tinkering with Node.js bots and SQLite, building or self-hosting a focused bot like this gives you full control over how your community interacts.
What features do you actually keep turned on in a small Discord server, and which ones end up feeling like noise after a week?
