Created
December 28, 2015 03:07
-
-
Save mbrevoort/13a798bef7165a9e0ea3 to your computer and use it in GitHub Desktop.
witbot botkit sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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