hubot-hockey
Version:
Get the latest NHL playoff odds for your team.
13 lines (11 loc) • 311 B
JavaScript
const fs = require('fs');
const path = require('path');
module.exports = (robot) => {
const scriptsPath = path.resolve(__dirname, 'src');
if (fs.existsSync(scriptsPath)) {
const scripts = ['hockey.js'].sort();
scripts.forEach((script) => {
robot.loadFile(scriptsPath, script);
});
}
};