UNPKG
hubot-rae
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Define words in spanish using hubot
github.com/gmq/hubot-rae
gmq/hubot-rae
hubot-rae
/
index.js
11 lines
(10 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var fs =
require
(
'fs'
); var Path =
require
(
'path'
);
module
.exports =
function
(robot)
{ var
path
= Path.resolve(__dirname,
'scripts'
);
if
(fs.existsSync(
path
)) { fs.readdirSync(
path
).forEach(
function
(file)
{ robot.loadFile(
path
, file); }); } };