I would like to prepare formatted messages to rocketchat from hubot but I can't find any reference for that.
That's my main reference: http://theprogrammingbutler.com/blog/archives/2011/10/28/hubot-scripts-explained/
I have tried this:
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)
But I would like some more rich and elaborated.
Any sugestion ??
Thanks.