UNPKG

hubot-catme2

Version:

Catme is the most importantest hubot script. This script is based on hubot-catme but uses an API key to get more images.

12 lines (11 loc) 403 B
fs = require 'fs' path = require 'path' module.exports = (robot, scripts) -> scriptsPath = path.resolve(__dirname, 'src') fs.exists scriptsPath, (exists) -> if exists for script in fs.readdirSync(scriptsPath) if scripts? and '*' not in scripts robot.loadFile(scriptsPath, script) if script in scripts else robot.loadFile(scriptsPath, script)