Discord を介して通知を投げるためのツール

Alright, so this has probably been done before and this is done in a very hacked sort of way, and if I’m posting this in the wrong place, please let me know.

I’ve coded a tool in python which receives webhook data from Huginn, which receives it from Discourse. The required configuration with Huginn isn’t posted to the repo yet, but it will be posted soon, just haven’t gotten around to it yet.

Here is the repo URL. Other tools will be posted there as I write them, this is by no mean a finished and polished product, just how I solved a particular problem and, be aware, the code is messy and lacks comments as of me posting it here, I will update as I make changes and the like.

… And I just fixed the massive security risk of posting my API key… Damnit.

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.

I have not, I - in being silly - didn’t search the forum for a discord tool prior to trying to do it, and I was kind of stuck on a track that started trying to use IFTTT, which lead me to Huginn, and then lead me to writing a script. Weird, I know.

@Cyclops、まだ Huginn を使っていますか?
私はこれを Zapier の良い代替案だと考えています。Adding posts via API using Huginn - Developer help - Ghost Forum で触れられているように、これにより、統合を提供していない他のアプリケーションと通信・対話することが可能になります。

今は使っていませんが、とても役立ちました。インターフェスはあまり好きではありませんでしたが、機能していましたし、むしろよく動きました。現在は Telegram を利用し、既存のプラグインを使って Telegram 通知を追加するように人々に依頼しています。