hubot-ibmcloud-formatter
v0.0.33
Published
Adapts attachment objects to platform-specific messages
Downloads
10
Readme
hubot-ibmcloud-formatter
Listens for messages sent via robot.emit
directed at ibmcloud.formatter
and formats them appropriately for the given hubot adapter.
Usage
robot.respond(/hello/, (response) => {
robot.emit('ibmcloud.formatter', {
response: response,
attachments: [
{
title: 'A fancy hello',
text: 'Greetings and salutations.'
}
]
});
})
License
See LICENSE.txt for license information.
Contribute
Please check out our Contribution Guidelines for detailed information on how you can lend a hand.