Skip to content

Instantly share code, notes, and snippets.

@mbrevoort
Created December 28, 2015 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbrevoort/13a798bef7165a9e0ea3 to your computer and use it in GitHub Desktop.
Save mbrevoort/13a798bef7165a9e0ea3 to your computer and use it in GitHub Desktop.
witbot botkit sample
var controller = Botkit.slackbot({ debug: false })
controller.hears('.*', 'direct_message,direct_mention', function (bot, message) {
witbot.process(message.text, bot, message)
})
witbot.hears('hello', 0.5, function (bot, message, outcome) {
bot.reply(message, 'Hello to you as well!')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment