A simple, plug-and-play template designed for building Discord bots using TypeScript and Discord.js.
When I started building my own Discord bots, I found there weren’t many solid starter templates out there. This project addresses that gap by providing a clean, well-organized foundation. With this template, you can focus on writing your bot’s logic instead of spending time on setting up your project structure.
For detailed instructions on how to extend the template and follow best practices, refer to the full development documentation.
.envfile in the root directory with the necessary variables (see/.env.example).docker&docker composeinstalled on your machine.
Note
This template has been tested for deployment in a Unix/Linux based environment. Additionally, you'll need to tailor the docker-compose.yml file to your needs depending on what you decide to add to the bot, and you'll need to learn how to use properly docker/docker compose if you don't already know.
sudo docker compose -p "" up -dsudo docker compose downsudo docker compose restartsudo docker compose build