Skip to content

Bracketed/templates-discordjs-slim

Repository files navigation

@TEMPLATES


A project by ninjaninja140

@templates/discordjs-typescript

A simple discord.js bot made in Typescript using @sapphire/framework with full docker support from out of the box.


Developing

Working with this bot is very simple, all you have to know is how discord.js, and sapphire framework work with a simple-ish knowledge of typescript or javascript. You can compile this bot using tsup, yarn tsup, npx tsup or any compile command you feel fit for Typescript.

Setting up this project is also just as simple! All you have to run is npm i or yarn install. This template is also backed with a pre-loaded yarn install from the latest version (as of 10/02/2025) so you should be good to go, right from the get-go!

Running

This bot can be ran using docker, which a dockerfile comes pre-prepared with this repository, alongside little customisations that can be made within its file, the image can be built and run with the docker build and docker run commands, here's an example, which is used in our test builds.

Production commands:

  • Building the full project: docker compose -f docker/prod/main.compose.yaml build
  • Running the full project: docker compose -f docker/prod/main.compose.yaml up -d
  • Building only services: docker compose -f docker/prod/services.compose.yaml build
  • Running only services: docker compose -f docker/prod/services.compose.yaml up -d

Development commands:

  • Building the full project: docker compose -f docker/dev/main.compose.yaml build
  • Running the full project: docker compose -f docker/dev/main.compose.yaml up -d
  • Building only services: docker compose -f docker/dev/services.compose.yaml build
  • Running only services: docker compose -f docker/dev/services.compose.yaml up -d (Command automatically runs on boot with VSC for development environments)

Contributing

To contribute to this repository, just fork it, make your changes and run a merge/pull request to this repository, if I'm around I'll try to review it and get it in here!


Happy developing! - ninjaninja140

About

A variation of our Discord.js template using a slimmed Dockerfile to save on size!

Topics

Resources

Stars

Watchers

Forks

Contributors