-
Notifications
You must be signed in to change notification settings - Fork 9
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
support webhooks #22
Comments
Is the goal to work around the integration limit in the free tier of Slack? |
There was a discussion last night about having the ability to let Watney respond to outgoing web hooks from other systems (Jira was the system cited) to do custom things with those webhook notifications that Slack doesn't support natively. |
So a plugin would register a webhook listener, something like this? bot.registerWebhook({
endpoint: '/jira'
function: someHandlerMethodInPlugin
}); |
yeah thats def a motivation, but like dan said even with the paid tier, there are certain integrations that slack doesnt really support completely. But overall I think itd be nice to just be able to have more input methods, I bet we could find a lot of things we could hook into with it. And it should be easy to add an http server in node right? |
heh, you're joking right? ;) |
we def can offer a registration like that. and yes, I was joking :) |
Brain dump for now:
Allow a configuration option to enable an http server in the core. If enabled, plugins could register for
eventType: 'http'
and listen for patterns on the url, I expect just the endpoint? maybe endpoint and verb?Then if hit the request would come through as the message. You could post to any channel if you wanted from there. I dont know if it really makes sense (or would easily be possible with the way things are currently structured) to allow the plugin to handle the response - I think we would just give a 200 for any request that matched at least one pattern and a 404 for any request that didn't match a pattern.
This could be used for any integration that supports webhooks, github and jira being the big two that have been discussed.
Any other thoughts / ideas / needs?
The text was updated successfully, but these errors were encountered: