Hubot Rocketchat Versions Save

Rocket.Chat Hubot adapter

v0.0.27

8 years ago

Allows things like:

image

Allows you to do something like:

robot.adapter.customMessage({
  channel: room,
  attachments: [
    {
       title: "[#{repo.full_name}] New Comment on #{issue_pull}: \##{issue.number}",
       title_link: issue.html_url,
       text: "<img src=\"#{comment.user.avatar_url}\" width=\"20\" /> <a href=\"{comment.user.html_url}\">#{comment.user.login}</a>: <br /> #{comment.body}"
    }
  ]
});

Inspiration for this approach:

http://baudehlo.com/2015/11/20/creating-nice-looking-slack-bot-messages-with-hubot/