Charca / bootbot

Facebook Messenger Bot Framework for Node.js
MIT License
974 stars 252 forks source link

Integration with express #194

Open buster95 opened 4 years ago

buster95 commented 4 years ago

How can I integrate it with a existent express app??

buster95 commented 4 years ago

let me make you a PR, adding a middleware() function that will be used in a existent express instance I'm doing tests

could be used such as in the next code

var app = require('express')();

// bot.start(); this method will not used if you have a existent express instance
app.use(bot.middleware());