Skip to content

Instantly share code, notes, and snippets.

@yrezgui
Created December 1, 2016 14:47
Show Gist options
  • Save yrezgui/fa716b489803d1ed8f4c6a04f8a37d9b to your computer and use it in GitHub Desktop.
Save yrezgui/fa716b489803d1ed8f4c6a04f8a37d9b to your computer and use it in GitHub Desktop.
const Botmaster = require('botmaster');
const SlackBot = Botmaster.botTypes.SlackBot;
const botmaster = new Botmaster();
const slackBot = new SlackBot(SLACK_SETTINGS);
botmaster.addBot(slackBot);
botmaster.on('update', (bot, update) => {
bot.reply(update, 'Hello world');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment