a Discord.js bot that implements some missing features of .fmbot
You will need a Mongo database to connect to. It's recommended to use Docker for that even if you're running the bot locally.
This will start the bot in the current terminal. Docker is recommended for long term use although as long as you keep the terminal open the bot will keep running.
- set up
.env
using.env.sample
as a template npm i
npm run build
npm run start
This will spin up two nodemon services so you can restart the bot without having to build again.
- set up
.env
using.env.sample
as a template npm i
npm run build:watch
- open a new terminal window in the same directory
npm run watch
Mongo setup is included here. These commands will build and launch a Docker container that has two images, one for Mongo and one for Node (the bot itself).
- set up
.docker.env
using.env.sample
as a template docker compose build
docker compose up -d