a dice rolling bot for discord
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitattributes 🎉 Added .gitattributes Jul 17, 2016
.gitignore use forever.js Jul 20, 2016
Dockerfile use forever.js Jul 20, 2016
README.md flattr Aug 13, 2016
config.example.json add example config file Jul 18, 2016
package.json dependency changes Jul 20, 2016
rollbot.js fix regex Aug 30, 2016
rollbot.png Add avatar for Discord Jul 17, 2016
run.js use forever.js Jul 20, 2016

README.md

Flattr this git repo

rollbot

Simply a Discord bot for rolling dice.

Commands

The only command is /roll

Syntax: /roll xdy where x is the number of dice to roll and y is the number of sides the dice have.

Example: /roll 2d20 rolls two twenty-sided dice and displays the result and sum of the rolls.

Usage

  1. Rename config.example.json to config.json
  2. Put Discord API key into config.json
  3. npm install
  4. node rollbot.js

Getting it to join a server is left as an exercise to the reader.

Credits

Dice image used as the bot's Discord avatar credit of Steaphan Greene, image is from Wikipedia and is licensed under Creative Commons Atribution-Share Alike 3.0 Unported.