wow it's almost like i've tried to make a billion other discord bots and they've all gone horribly wrong, i sure do wonder what could ever be different about this one!!!!!
Go to file
SadlyNotSappho 78c732a002 nightmare and add some shit 2023-02-10 13:41:22 -08:00
.yarn Initialize Sapphire project 2023-02-10 10:46:20 -08:00
src nightmare and add some shit 2023-02-10 13:41:22 -08:00
.dockerignore Initialize Sapphire project 2023-02-10 10:46:20 -08:00
.env.example Initialize Sapphire project 2023-02-10 10:46:20 -08:00
.gitignore nightmare and add some shit 2023-02-10 13:41:22 -08:00
.prettierignore Initialize Sapphire project 2023-02-10 10:46:20 -08:00
.sapphirerc.json Initialize Sapphire project 2023-02-10 10:46:20 -08:00
.yarnrc.yml Initialize Sapphire project 2023-02-10 10:46:20 -08:00
Dockerfile nightmare and add some shit 2023-02-10 13:41:22 -08:00
LICENSE Initial commit 2023-02-10 10:18:43 -08:00
README.md Initialize Sapphire project 2023-02-10 10:46:20 -08:00
docker-compose.yml Initialize Sapphire project 2023-02-10 10:46:20 -08:00
package-lock.json nightmare and add some shit 2023-02-10 13:41:22 -08:00
package.json nightmare and add some shit 2023-02-10 13:41:22 -08:00
tsconfig.json Initialize Sapphire project 2023-02-10 10:46:20 -08:00
yarn.lock nightmare and add some shit 2023-02-10 13:41:22 -08:00

README.md

Docker Sapphire Bot example

This is a basic setup of a Discord bot using the sapphire framework written in TypeScript containerized with Docker

How to use it?

Prerequisite

  1. Copy the .env.example and rename it to .env, make sure to fill the Token.
  2. Open the Dockerfile and in the block marked with Conditional steps for end-users make sure you enable the lines that apply to your project.

Development

Run docker-compose up. This will start the bot in watch mode and automatically run it after each save. It will build the Dockerfile up until the development stage.

Production

Just like in the development step, you have to fill in the .env file and then run the following command to create a production image;

docker build . -t sapphire-sample-bot

To test if your image works, you can run:

docker run --env-file .env sapphire-sample-bot

License

Dedicated to the public domain via the Unlicense, courtesy of the Sapphire Community and its contributors.