-
Notifications
You must be signed in to change notification settings - Fork 379
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
Add middleware for outgoing messages #20
Comments
If we would add middleware for outgoing messages, how would we distinguish from incoming middleware which is currently Something like this?
|
Also, would this be triggered off of |
more options: |
It would be useful to define middleware on a per matcher basis similar to express.js
This way you could slapp.command('/foo', myMiddleware, (msg) => {
// do stuff
})
slapp.action('someaction', 'answer', myMiddleware, (msg) => {
// do stuff
})
function myMiddleware(msg, next} {
// do stuff
next()
} |
In Bolt v1, we added the ability to pass a post-processing function into |
Processed for msg.say and msg.respond, not sure what the API looks like yet but would be nice to be able to
msg.say({ key , params})
and have it look that up in a language fileThe text was updated successfully, but these errors were encountered: