Botkit: Missing example of using your own Express server

Created on 28 Jan 2016  路  7Comments  路  Source: howdyai/botkit

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!"

Most helpful comment

The provided docs is for Slack, can we have an example with Express for Facebook as well?

All 7 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RafaelCosman picture RafaelCosman  路  4Comments

stelio picture stelio  路  4Comments

dfischer picture dfischer  路  4Comments

matueranet picture matueranet  路  4Comments

liornaar picture liornaar  路  3Comments