Have you given the discourse-chat-integration plugin a try? It provides similar functionality in terms of posting notifications to discord rooms, although obviously won’t be as customisable as writing your own script.
5 Likes