Skip to content

Instantly share code, notes, and snippets.

@mbrevoort
Created April 1, 2016 17:48
Show Gist options
  • Save mbrevoort/55f3d7a047b0219cb3aaaf34dab9c6ee to your computer and use it in GitHub Desktop.
Save mbrevoort/55f3d7a047b0219cb3aaaf34dab9c6ee to your computer and use it in GitHub Desktop.
beepboop-botkit oneliner
var Botkit = require('botkit')
var controller = Botkit.slackbot()
require('beepboop-botkit').start(controller)
controller.hears('hello', ['direct_message', 'direct_mention', 'mention'], function (bot, message) {
bot.reply(message, 'Hello!')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment