https://github.com/yeah568/hubot-rollin
A hubot script that allows for advanced dice rolls.
https://github.com/yeah568/hubot-rollin
dice dice-notation dice-roller hubot hubot-scripts javascript
Last synced: about 1 year ago
JSON representation
A hubot script that allows for advanced dice rolls.
- Host: GitHub
- URL: https://github.com/yeah568/hubot-rollin
- Owner: yeah568
- Created: 2017-02-12T01:41:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T20:10:40.000Z (over 7 years ago)
- Last Synced: 2025-02-23T17:38:21.600Z (over 1 year ago)
- Topics: dice, dice-notation, dice-roller, hubot, hubot-scripts, javascript
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hubot-rollin
A hubot script that allows for advanced dice rolls.
See [`src/rollin.js`](src/rollin.js) for full documentation.
## Installation
In hubot project repo, run:
`npm install hubot-rollin --save`
Then add **hubot-rollin** to your `external-scripts.json`:
```json
[
"hubot-rollin"
]
```
## Sample Interaction
```
user>> hubot roll d20
hubot>> user rolled:
16.
user>> hubot roll 3d20
hubot>> user rolled:
16, 12, 4. Sum: 32.
user>> hubot roll 2:2d20
hubot>> user rolled:
10, 4. Sum: 14.
3, 17. Sum: 20.
user>> hubot roll 2d20+3
hubot>> user rolled:
8, 7. Sum: 15 + 3 = 18.
user>> hubot roll 2:3d20+4
hubot>> user rolled:
13, 2, 12. Sum: 27 + 4 = 31.
17, 18, 4. Sum: 39 + 4 = 43.
```
## NPM Module
https://www.npmjs.com/package/hubot-rollin