Configurar notificaciones de Zulip usando el plugin de integración de chat

Este howto describe cómo configurar el proveedor Zulip incluido en discourse-chat-integration.

Configurar Zulip

  1. En la configuración personal de Zulip, ve a Bots

  2. Haz clic en Add a new bot (Añadir un nuevo bot)

  3. Introduce un nombre y selecciona Incoming webhook como bot type (tipo de bot)

  4. Haz clic en Add (Añadir)

  5. Copia la Clave de API y la dirección de correo electrónico, las necesitarás más tarde

Configurar Discourse

  1. En la configuración del sitio de Discourse, introduce la dirección de tu servidor Zulip en la configuración chat_integration_zulip_server. Asegúrate de incluir el protocolo. (ej. https://chat.zulip.org)

  2. Pega la Clave de API que copiaste antes en la configuración del sitio chat_integration_zulip_bot_api_key

  3. Pega la dirección de correo electrónico que copiaste antes en la configuración del sitio chat_integration_zulip_bot_email_address

  4. Habilita chat_integration_zulip_enabled

  5. Ve a la pestaña Plugins, luego a Chat Integration

  6. Ve a la pestaña Zulip, luego a Add Channel (Añadir Canal)

  7. Introduce un Stream (Flujo) al que deseas enviar las notificaciones y un Subject (Asunto) para adjuntar a los mensajes

  8. Save Channel (Guardar Canal)

  9. Utiliza el botón Test (Probar) en el canal que acabas de crear para comprobar que todo funciona. Deberías ver algo como esto:

  10. Configura algunas “Reglas” para tu canal, de acuerdo con las instrucciones de discourse-chat-integration.

10 Me gusta

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 me gusta