0.0.1 • Published 8 years ago
hubot-rocketchat-attachment v0.0.1
Hubot Rocket.Chat Attachment
Rocket.Chat attachment like Slack.
Installation
npm install -S hubot-rocketchat-attachmentAnd then add hubot-rocketchat-attachment to external-scripts.json.
Run
HUBOT_ROCKETCHAT_INCOMING_WEBHOOK=INCOMING-WEBHOOK-URL bin/hubot -a rocketchatUsage
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
8 years ago