ibm-cloud-solutions / hubot-ibmcloud-formatter

Listens for messages and formats them appropriately for the given hubot adapter
http://www.ibm.com/
Other
0 stars 0 forks source link

Build Status Dependency Status Coverage Status npm version

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.