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 -dYou can optionally create a config file in data/config.json
$ git clone https://github.com/Kaffeegeist/rector-bot$ cd ./rector-botNow create the file .env and declare following variables:
BOT_TOKEN
DSB_USERNAME
DSB_PASSWORD
CLASS_NAME
$ npm ci$ npm run brUsage: npm run <script>
-
buildbuilds the project -
startruns the compiled project -
brbuilds and runs the project