Zulipの通知をチャット統合プラグインを使って設定する

この howto では、discourse-chat-integration に含まれる Zulip プロバイダーを設定する方法を説明します。

Zulip の設定

  1. Zulip の個人設定で、Bots に移動します。

  2. Add a new bot をクリックします。

  3. 名前を入力し、bot type として Incoming webhook を選択します。

  4. Add をクリックします。

  5. 後で必要になる API キーとメールアドレスを書き留めておきます。

Discourse の設定

  1. Discourse のサイト設定で、chat_integration_zulip_server 設定に Zulip サーバーのアドレスを入力します。プロトコルを含めるようにしてください。(例: https://chat.zulip.org

  2. 先ほどコピーした API キーを chat_integration_zulip_bot_api_key サイト設定に貼り付けます。

  3. 先ほどコピーしたメールアドレスを chat_integration_zulip_bot_email_address サイト設定に貼り付けます。

  4. chat_integration_zulip_enabled を有効にします。

  5. Plugins タブに移動し、次に Chat Integration に移動します。

  6. Zulip タブに移動し、次に Add Channel に移動します。

  7. 通知を送信したい Stream と、メッセージに添付する Subject を入力します。

  8. Save Channel

  9. 作成したチャンネルの Test ボタンを使用して、すべてが機能しているか確認します。次のようなものが表示されるはずです。

  10. discourse-chat-integration の指示に従って、チャンネルの「ルール」を設定します。

「いいね!」 10

Would it be possible to have the discourse server be set to an entire stream on zulip, with a zulip topic matching a discourse category/topic and allowing posting back to Discourse messages to the appropriate zulip topic as either the zulip user themselves (if matching email address) or optionally as the bot user itself (would prefer using a matching discourse user by email, I use oidc for everything so it is all unified anyway, falling back to just posting as the bot itself with an appropriate ‘who said it’). It would be amazingly userful to respond to discourse threads while using the zulip-term terminal interface without needing to spool up a web browser (especially since I don’t have a GUI at times, only a pure console interface).

EDIT1: Also, are there any issues with this and running Zulip 2.0+?

EDIT2: Matching the user from discourse to zulip via email address would be possible as well, but it would need to become a System Bot in Zulip instead of just a General Bot as would be required to post messages back to Discourse, in terms of permissions needed (System bots are ‘above’ admin). Might be a useful optional ability though.

「いいね!」 1