Skip to content

Latest commit

 

History

History
86 lines (63 loc) · 1.68 KB

README.md

File metadata and controls

86 lines (63 loc) · 1.68 KB

Rector

A discord bot for staying up to date with the dsbmobile substitution plan

Setting up

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

Building from source

$ 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

npm scripts

Usage: npm run <script>

  • build builds the project

  • start runs the compiled project

  • br builds and runs the project

Built with