Listens for messages sent via robot.emit
directed at ibmcloud.formatter
and formats them appropriately for the given hubot adapter.
robot.respond(/hello/, (response) => {
robot.emit('ibmcloud.formatter', {
response: response,
attachments: [
{
title: 'A fancy hello',
text: 'Greetings and salutations.'
}
]
});
})
See LICENSE.txt for license information.
Please check out our Contribution Guidelines for detailed information on how you can lend a hand.