0.0.1 • Published 7 years ago
hubot-rocketchat-attachment v0.0.1
Hubot Rocket.Chat Attachment
Rocket.Chat attachment like Slack.
Installation
npm install -S hubot-rocketchat-attachment
And then add hubot-rocketchat-attachment to external-scripts.json.
Run
HUBOT_ROCKETCHAT_INCOMING_WEBHOOK=INCOMING-WEBHOOK-URL bin/hubot -a rocketchat
Usage
Let see this page.
robot.emit('rocketchat.attachment', {
content: {
text: 'content text',
attachments: [
{
text: 'attachment text',
fields: [{
title: 'Field title',
value: 'Field value'
}]
}
]
},
channel: '#general',
username: '...',
icon_url: '...',
icon_emoji: '...'
})
Contribute
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT
0.0.1
7 years ago