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

Commit 179591f

Browse files
author
JJ Asghar
committed
Fixed to be [rollOne(6)]
Per @technicalpickles suggestion, fixed for the function that is already there. Works like a charm.
1 parent fdebdaa commit 179591f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scripts/dice.coffee

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
# None
99
#
1010
# Commands:
11-
# hubot roll die - Roll one six-sided dice
11+
# hubot roll (die|one) - Roll one six-sided dice
1212
# hubot roll dice - Roll two six-sided dice
1313
# hubot roll <x>d<y> - roll x dice, each of which has y sides
1414
#
1515
# Author:
1616
# ab9
1717

1818
module.exports = (robot) ->
19-
robot.respond /roll die/i, (msg) ->
20-
msg.reply report roll 1, 6
19+
robot.respond /roll (die|one)/i, (msg) ->
20+
msg.reply report [rollOne(6)]
2121
robot.respond /roll dice/i, (msg) ->
2222
msg.reply report roll 2, 6
2323
robot.respond /roll (\d+)d(\d+)/i, (msg) ->

0 commit comments

Comments
 (0)