Skip to content

Add a method to set Express middlewares through BootBot#107

Closed
maximelebastard wants to merge 1 commit intoCharca:masterfrom
maximelebastard:master
Closed

Add a method to set Express middlewares through BootBot#107
maximelebastard wants to merge 1 commit intoCharca:masterfrom
maximelebastard:master

Conversation

@maximelebastard
Copy link

Users of BootBot can face a situation where they have to handle a custom logging format, a security layer or any custom behavior for the Express server.

It would be convenient to be able to set extra Express middlewares before startup of BootBot.

@Charca
Copy link
Owner

Charca commented Feb 24, 2018

Thanks for the PR @maximelebastard, this looks good to me!

It looks like a simpler implementation of #104, what do you think @mraaroncruz?

@mraaroncruz
Copy link
Collaborator

Hmmmm. I like this more than addBotMiddleware but I still think we need to make an easy way for users to add middleware to a non-_verify... middleware'd bot.app.
bot.use and bot.useUnverified? @Charca

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 this pull request may close these issues.

3 participants