Last active
April 22, 2016 21:15
-
-
Save devStepsize/62faf5b14c2b650647bd9c0108f4c674 to your computer and use it in GitHub Desktop.
Botkit receive middleware to do things like preprocess the incoming message content
This file contains hidden or 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
// From https://github.com/howdyai/botkit#receive-middleware | |
controller.middleware.receive.use(function(bot, message, next) { | |
// do something... | |
// message.extrainfo = 'foo'; | |
next(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment