UNPKG

hubot-kaibaibo

Version:

Hubot script to play kai bai bo (rock paper scissors).

10 lines (9 loc) 276 B
Fs = require 'fs' Path = require 'path' module.exports = (robot) -> path = Path.resolve __dirname, 'scripts' Fs.exists path, (exists) -> if exists for file in Fs.readdirSync(path) robot.loadFile path, file robot.parseHelp Path.join(path, file)