Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with express #194

Open
buster95 opened this issue Aug 20, 2020 · 1 comment · May be fixed by #195
Open

Integration with express #194

buster95 opened this issue Aug 20, 2020 · 1 comment · May be fixed by #195

Comments

@buster95
Copy link

buster95 commented Aug 20, 2020

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

@buster95
Copy link
Author

buster95 commented Aug 20, 2020

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 buster95 linked a pull request Aug 20, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant