Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 42e6298

Browse files
Merge pull request #1246 from jjasghar/patch-1
Update dice.coffee
2 parents d431f86 + 179591f commit 42e6298

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scripts/dice.coffee

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
# None
99
#
1010
# Commands:
11+
# hubot roll (die|one) - Roll one six-sided dice
1112
# hubot roll dice - Roll two six-sided dice
1213
# hubot roll <x>d<y> - roll x dice, each of which has y sides
1314
#
1415
# Author:
1516
# ab9
1617

1718
module.exports = (robot) ->
19+
robot.respond /roll (die|one)/i, (msg) ->
20+
msg.reply report [rollOne(6)]
1821
robot.respond /roll dice/i, (msg) ->
1922
msg.reply report roll 2, 6
2023
robot.respond /roll (\d+)d(\d+)/i, (msg) ->

0 commit comments

Comments
 (0)