fleaz / CptHook

Receive webhooks from different applications and post them to IRC channels
MIT License
17 stars 8 forks source link

Slack/Discord/Mattermost like webhooks? #65

Open poVoq opened 3 years ago

poVoq commented 3 years ago

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

fleaz commented 3 years ago

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 :)

poVoq commented 3 years ago

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