david
(David Taylor)
November 9, 2021, 10:11am
2
MessageBus is an option - you can find client libraries for Ruby and JS here: GitHub - discourse/message_bus: A reliable and robust messaging bus for Ruby and Rack
But a simpler solution is probably to use Discourse’s WebHooks feature. That way, Discourse can make a web request to your endpoint whenever there is a new topic/post. You can find more information here:
Webhooks is merged to master. Please don’t hesitate to leave comments on webhooks feedback .
Webhook is a way to notify external services about changes on the internet. It’s easier to setup, manage and develop than a Discourse plugin. Though, it does require you to program a little bit or understand its technical details.
In this #howto , I’ll set up webhook to power a Github bot for referencing pull request brought in a forum. We’ll want to see a new comment on Github pull request when a new po…
4 Likes