- Install package dependencies:
npm install
- Create a
.env
file in project root and populate with theBOT_TOKEN
from Discord Developer Portal. - Optionally, provide a
MONGO_URI
to connect to a MongoDB instance. If not provided, a local Docker container will be used instead. - Launch Docker Desktop. In VS Code, right-click
.metrics-bot-dev-container\docker-compose.yml
and selectCompose Up
to initialize database container. - Press
F5
or runnpm run dev
to run in dev mode (restarts on file save).