UNPKG
hubot-scripts
Version:
beta (3.0.0-beta3)
latest (2.17.2)
3.0.1-beta1
3.0.0-beta3
3.0.0-beta1
2.17.2
2.17.1
2.17.0
2.16.2
2.16.1
2.16.0
2.5.16
2.5.15
2.5.14
2.5.13
2.5.12
2.5.11
2.5.9
2.5.8
2.5.7
2.5.6
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.8
2.4.7
2.4.6
2.4.5
2.4.3
2.4.2
2.4.1
2.4.0
2.2.2
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.0
Allows you to opt in to a variety of scripts
github/hubot-scripts
hubot-scripts
/
src
/
scripts
/
sweetdude.coffee
20 lines
(18 loc)
•
308 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Description:
# None
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
#
# Author:
# cgarvis
module.exports = (robot) -> robot.hear /^(sweet|dude)!/i, (msg) ->
switch
msg.match[
1
].toLowerCase()
when
"sweet"
then msg.send
"Dude!"
when
"dude"
then msg.send
"Sweet!"