UNPKG
hubot-altefleiwa
Version:
latest (1.2.2)
1.2.2
1.2.1
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Menu of the Alte Fleiwa
github.com/sgade/hubot-altefleiwa
sgade/hubot-altefleiwa
hubot-altefleiwa
/
test
/
index.coffee
17 lines
(12 loc)
•
227 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
lib =
require
'../lib/index.coffee'
callbacks = [] robot = { respond: (regex, cb) -> callbacks.push cb } lib(robot)
for
cb
in
callbacks cb({ reply: console.
log
match
: [
"feed me thursday"
,
"thursday"
] })