How to use the dashbot.slack function in dashbot

To help you get started, we’ve selected a few dashbot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gratifyguy / botkit-mock / examples / botkit-starter-slack / components / plugin_dashbot.js View on Github external
module.exports = function (controller) {
	
	// Dashbot is a turnkey analytics platform for bots.
	// Sign up for a free key here: https://www.dashbot.io/ to see your bot analytics in real time.
	if (process.env.DASHBOT_API_KEY) {
		var dashbot = require('dashbot')(process.env.DASHBOT_API_KEY).slack;
		controller.middleware.receive.use(dashbot.receive);
		controller.middleware.send.use(dashbot.send);
		controller.log.info('Thanks for using Dashbot. Visit https://www.dashbot.io/ to see your bot analytics in real time.');
	} else {
		controller.log.info('No DASHBOT_API_KEY specified. For free turnkey analytics for your bot, go to https://www.dashbot.io/ to get your key.');
	}
	
};

dashbot

Analytics for your bot

SEE LICENSE IN LICENSE
Latest version published 2 years ago

Package Health Score

49 / 100
Full package analysis