Configurer les notifications Zulip en utilisant le plugin d'intégration de chat

Ce howto décrit comment configurer le fournisseur Zulip inclus dans discourse-chat-integration.

Configuration de Zulip

  1. Dans vos paramètres personnels Zulip, allez à Bots

  2. Cliquez sur Add a new bot

  3. Entrez un nom et sélectionnez Incoming webhook comme bot type

  4. Cliquez sur Add

  5. Notez la clé API et l’adresse e-mail, vous en aurez besoin plus tard

Configuration de Discourse

  1. Dans les paramètres de votre site Discourse, entrez l’adresse de votre serveur Zulip dans le paramètre chat_integration_zulip_server. Assurez-vous d’inclure le protocole. (ex. https://chat.zulip.org)

  2. Collez la clé API que vous avez copiée précédemment dans le paramètre de site chat_integration_zulip_bot_api_key

  3. Collez l’adresse e-mail que vous avez copiée précédemment dans le paramètre de site chat_integration_zulip_bot_email_address

  4. Activez chat_integration_zulip_enabled

  5. Allez à l’onglet Plugins, puis Chat Integration

  6. Allez à l’onglet Zulip, puis Add Channel

  7. Entrez un Stream vers lequel vous souhaitez envoyer les notifications, et un Subject à joindre aux messages

  8. Save Channel

  9. Utilisez le bouton Test sur le canal que vous venez de créer pour vérifier que tout fonctionne. Vous devriez voir quelque chose comme ceci :

  10. Configurez des « Règles » pour votre canal, conformément aux instructions de discourse-chat-integration.

10 « J'aime »

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 « J'aime »