Skip to content

localpcguy/dicebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dicebot

Bot for Slack to roll dice.

To use:

  • setup website on a server running Node
  • add a config file with the API tokens from Slack
  • add a Slash Command Slack integration, point at the dicebot server you setup

Once the integration is up, in Slack, use it by:

  • typing /roll #d# where the first number is the number of dice and the second number is the number of sides
  • syntax is very forgiving, allowing things like
    • modifiers - /roll 2d6 +15
    • multiple dice - /roll 3d6 2d8
    • it will try to "parse" weird rolls like /roll +2 +5 2d6 where the parameters are out of order
    • /roll defaults to 1d20 if nothing is passed

initial credit to: http://www.sitepoint.com/getting-started-slack-bots/

Todo:

  • Add functionality for a modifier
  • Add functionality for multiple die "sets"
  • Add unit testing to check various die scenarios
  • Allow negative modifiers
  • Fix multi-digit modifiers
  • Add "roll reason" to API

About

Bot for Slack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published