Skip to content

Listens for messages and formats them appropriately for the given hubot adapter

License

Notifications You must be signed in to change notification settings

ibm-cloud-solutions/hubot-ibmcloud-formatter

Repository files navigation

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.

About

Listens for messages and formats them appropriately for the given hubot adapter

Resources

License

Stars

Watchers

Forks

Packages

No packages published