Go to file
2019-05-23 19:12:26 +02:00
.gitignore Initial commit 2019-05-17 19:29:31 +02:00
bot.js Add loading of auth from environment variable 2019-05-23 18:32:55 +02:00
diceRolling.js Added new calculation 2019-05-18 14:18:45 +02:00
Dockerfile Add Dockerfile 2019-05-18 15:11:06 +02:00
Jenkinsfile Add Jenkinsfile 2019-05-23 18:54:04 +02:00
LICENSE Initial commit 2019-05-17 19:29:31 +02:00
package-lock.json Initial commit 2019-05-17 19:29:31 +02:00
package.json Initial commit 2019-05-17 19:29:31 +02:00
README.md fix README indentation 2019-05-23 18:39:26 +02:00

Rollux

Rollux is a simple dice rolling bot for discord

How to run

  1. Make a discord bot here.
    • Here is a tutorial on how to make a discord bot.
  2. Make a auth.json file and add the following to it:
{
    "token": "{your token}"
}
  1. Install node.js and npm, then run the following command: npm install
  2. Run it with node bot.js

Running with docker

  1. Build docker image with a tag Example: docker build -t rollux .

  2. Add authentication by either:

    1. Mount /data directory in container with your auth.json file
    2. Pass the environment variable DISCORD_TOKEN with your discord token

Example docker-compose file:

For auth.json method:

version: '2'

services:
  rollux:
    image: 'rollux'
    volumes:
      - ./data:/data

For environment variable:

version: '2'

services:
  rollux:
    image: 'rollux'
    environment:
      - DISCORD_TOKEN={your token}