There are a number of allusions to using your own server, but no examples of how to plug botkit into your own server.
For example, from the readme:
// if you are already using Express, you can use your own server instance...
controller.setupWebserver(process.env.port,function(err,webserver) {
controller.createWebhookEndpoints(controller.webserver);
});
and
"If you need more than a simple webserver to receive webhooks, you should by all means create your own Express webserver!"
Hmmm, I guess it's enough to just pass your express server to controller.createWebhookEndpoints... I guess I should PR it myself :P
@spasiu I can add some docs if you want. I'm Working on some application which is currently planning on using this with express. Let me know, I'd prefer to add some simple example in the docs
:+1:
+1 to docs being useful!
I have published a demo using an Express server here: https://github.com/mvaragnat/botkit-express-demo
I will submit a PR linking this demo as an example
The provided docs is for Slack, can we have an example with Express for Facebook as well?
@creativityhurts
For any coming from google, I have written about this on Stack Overflow and Medium
Most helpful comment
The provided docs is for Slack, can we have an example with Express for Facebook as well?