UNPKG
hubot-cage
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
Recite stories from Cage's 'Indeterminacy'.
github.com/jfhamlin/hubot-cage
jfhamlin/hubot-cage
hubot-cage
/
index.coffee
10 lines
(8 loc)
•
284 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
fs =
require
'fs'
path
=
require
'path'
module
.exports = (robot, scripts) -> scriptsPath =
path
.resolve(__dirname,
'src'
)
if
scripts?
and
'*'
not
in
scripts robot.loadFile(scriptsPath,
'cage.coffee'
)
if
script
in
scripts
else
robot.loadFile(scriptsPath,
'cage.coffee'
)