Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做某种别名,例如hubot status应该调用hubot newrelic meand hubot gauges for today。
hubot status
hubot newrelic me
hubot gauges for today
我试图做类似`msg.send“hubot newrelic me”之类的事情,但似乎hubot只是忽略了这条消息。
我怎样才能做到这一点?
您可以使用事件使脚本彼此对话。
robot.emit 'event', param robot.on 'event', (param) -> console.log 'received param', param
以下是有关它的更多信息:https ://leanpub.com/automation-and-monitoring-with-hubot/read#leanpub-auto-cross-script-communication-with-events