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:
A 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 post has a link to it.
It’s a very simple process:
Publish a new post.
A webhook event happ…
4 Likes