我想从hubot准备格式化消息到rocketchat,但我找不到任何参考。
这是我的主要参考: http ://theprogrammingbutler.com/blog/archives/2011/10/28/hubot-scripts-explained/
我试过这个:
msg.http(url)
.headers("PRIVATE-TOKEN": api_key, Accept: 'application/json')
.get() (err, response, body) ->
try
json = JSON.parse(body)
for issue in json
msg.send "#{issue.title}"
catch error
msg.send "Sistema not found."
console.log(error)
但我想更丰富和详细一些。
有什么建议吗??
谢谢。