UNPKG

hubot-scripts

Version:

Allows you to opt in to a variety of scripts

25 lines (20 loc) 401 B
# Description: # "Makes your Hubot even more Clever™" # # Dependencies: # "cleverbot-node": "0.1.1" # # Configuration: # None # # Commands: # hubot c <input> # # Author: # ajacksified cleverbot = require('cleverbot-node') module.exports = (robot) -> c = new cleverbot() robot.respond /c (.*)/i, (msg) -> data = msg.match[1].trim() c.write(data, (c) => msg.send(c.message))