Using docker
docker-compose.yml
version: "3.8"
services:
bot:
image: tch1b0/rector:latest
environment:
- BOT_TOKEN=<YOUR DISCORD BOT TOKEN>
- DSB_USERNAME=<YOUR DSBmobile USERNAME>
- DSB_PASSWORD=<YOUR DSBmobile USERNAME>
- CLASS_NAME=<YOUR CLASS NAME>
# optionally for data consistency:
volumes:
- "./data:/app/data"
$ docker-compose pull
$ docker-compose up -d
You can optionally create a config file in data/config.json
$ git clone https://github.com/Kaffeegeist/rector-bot
$ cd ./rector-bot
Now create the file .env
and declare following variables:
BOT_TOKEN
DSB_USERNAME
DSB_PASSWORD
CLASS_NAME
$ npm ci
$ npm run br
Usage: npm run <script>
-
build
builds the project -
start
runs the compiled project -
br
builds and runs the project