【发布时间】:2013-08-09 03:42:39
【问题描述】:
我想做某种别名,例如hubot status 应该调用hubot newrelic me 和hubot gauges for today。
我尝试执行 `msg.send "hubot newrelic me" 之类的操作,但似乎 hubot 只是忽略了该消息。
我该怎么做?
【问题讨论】:
标签: hubot
我想做某种别名,例如hubot status 应该调用hubot newrelic me 和hubot gauges for today。
我尝试执行 `msg.send "hubot newrelic me" 之类的操作,但似乎 hubot 只是忽略了该消息。
我该怎么做?
【问题讨论】:
标签: hubot
您可以使用事件使脚本彼此对话。
robot.emit 'event', param
robot.on 'event', (param) ->
console.log 'received param', param
【讨论】: