Thanks for the effort @david but I agree with @sam it’s above and beyond what I had in mind. When in doubt I like to keep things simple and build up ![]()
-
This should definitely be a plugin, as not every discourse wants to integrate with a chat system. Something like
discourse-chatfor core support, and thendiscourse-chat-slack,discourse-chat-hipchatfor adapters. -
I also agree with @falco that it should begin with only supporting admins. I don’t have a problem with an admin entering an API on an admin page to configure it either – fancy configuration by visiting a page would obviously be better but let’s start simple

-
The core plugin would attach to existing events in the site and expose others, like:
DiscourseEvent.trigger(:notify_chat, msg)wheremsgwould be an object full of things we can expose to chat providers. -
Providers would then listen for that and do the work necessary to publish.