Support for webhooks
nicoddemus opened this issue · comments
It is usually useful for bots to be able to receive webhooks from other systems so they can interact with them, for example GitHub itself.
Some examples:
-
miss-islington is a bot used by CPython which is notified whenever a PR is marked for backporting to a previous branch using a label; it then automatically finds the commits in that PR and cherry-picks them into the backport branch, opening a new PR. It handles a webhook whenever a PR is labeled and acts accordingly.
-
probot is a framework that allows one to write JS bots that handle specific GH events such as new comments, new PRs, etc.
-
err-jenkins is an errbot plugin that provides some jenkins specific commands, and is also notified by Jenkins by a webhook when a job finishes, notifying the user which triggered the job (here is how a webhook is configured in errbot) .
Those are just some of the examples, the possibilities to integrate with external systems are really limitless.
We already have support for webhooks 🎉 Actually supporting Messenger required webhooks to work. So to implement integration with other platforms that needs webhook should be something *easy* to do.
But, I need to give more thoughts about Bottery as a simple bot (or not a chatbot) framework.
We already have support for webhooks
Oh I must have missed that. Do we have documentation for that?
Also, can my bot implement a webhook, or instead platforms can use webhooks for communication? This issue is related to the former.
But, I need to give more thoughts about Bottery as a simple bot (or not a chatbot) framework.
Yeah, I'm always thinking about using bots for development, not really for chatting, so this suggestion might not be aligned with the vision of the project, sorry about that. 😁