You could try configuring a Post Event Webhook to point to your app. Your app could then analyze the payload and act on the post through the Discourse API. For details about the Discourse API, this is a good place to start: How to reverse engineer the Discourse API.
3 Likes