bootbot icon indicating copy to clipboard operation
bootbot copied to clipboard

Integration with express

Open buster95 opened this issue 4 years ago • 1 comments

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

buster95 avatar Aug 20 '20 16:08 buster95

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());

buster95 avatar Aug 20 '20 17:08 buster95