Rollux/README.md

37 lines
719 B
Markdown
Raw Normal View History

2019-05-17 17:29:31 +00:00
# Rollux
Rollux is a simple dice rolling bot for discord
# How to run
1. Make a discord bot [here](https://discordapp.com/developers/applications/).
- Here is a [tutorial](https://www.digitaltrends.com/gaming/how-to-make-a-discord-bot/) on how to make a discord bot.
2. Make a auth.json file and add the following to it:
```json
{
"token": "{your token}"
}
```
3. Install node.js and npm, then run the following command: `npm install`
2019-05-18 13:14:43 +00:00
4. Run it with `node bot.js`
# Running with docker
1. Build docker image
2. Mount `/data` directory in container with your auth.json file
## Example docker-compose file:
```
version: '2'
services:
rollux:
image: 'rollux'
volumes:
- ./data:/data
```