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

support webhooks #22

Open
ryanguill opened this issue Jul 10, 2015 · 6 comments
Open

support webhooks #22

ryanguill opened this issue Jul 10, 2015 · 6 comments

Comments

@ryanguill
Copy link
Owner

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?

@atuttle
Copy link
Collaborator

atuttle commented Jul 10, 2015

Is the goal to work around the integration limit in the free tier of Slack?

@dskaggs
Copy link
Contributor

dskaggs commented Jul 10, 2015

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.

@atuttle
Copy link
Collaborator

atuttle commented Jul 10, 2015

So a plugin would register a webhook listener, something like this?

bot.registerWebhook({
  endpoint: '/jira'
  function: someHandlerMethodInPlugin
});

@ryanguill
Copy link
Owner Author

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?

@atuttle
Copy link
Collaborator

atuttle commented Jul 10, 2015

heh, you're joking right? ;)

@ryanguill
Copy link
Owner Author

we def can offer a registration like that. and yes, I was joking :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants