fleaz / CptHook

Receive webhooks from different applications and post them to IRC channels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack/Discord/Mattermost like webhooks?

poVoq opened this issue · comments

commented

Lots of projects support slack-like webhooks, maybe a good idea to support these to get notifications into IRC that way?

Hey,
are "slack-like webhooks" some kind of standardized json body structure and is this documented somewhere?
But if so, this sounds like a good thing to implement :)

commented

I guess: https://api.slack.com/messaging/webhooks

For the reverse (sending webhooks to Slack) there are multiple Go libraries, but it seems like a fairly standard json webhook where one just needs to make sure the right formatting is understood.

Anyways cool that you are considering this. My personal usecase would be a Flarum forum, which has an extension to send notifications to Slack/Discord etc. but we really only use IRC (and XMPP) in our community.

P.S.: The Discord webhook format* is apparently very similar to the Slack one, and Mattermost for example uses an identical webhook formatting to be compatible with Slack.

https://discord.com/developers/docs/resources/webhook