Configurar notificações do Zulip usando o plugin de integração de chat

Este howto descreve como configurar o provedor Zulip incluído em discourse-chat-integration.

Configurar Zulip

  1. Nas suas configurações pessoais do Zulip, vá para Bots

  2. Clique em Add a new bot (Adicionar um novo bot)

  3. Digite um nome e selecione Incoming webhook (Webhook de entrada) como o bot type (tipo de bot)

  4. Clique em Add (Adicionar)

  5. Anote a Chave de API (API Key) e o endereço de e-mail, você precisará deles mais tarde

Configurar Discourse

  1. Nas configurações do seu site Discourse, insira o endereço do seu servidor Zulip na configuração chat_integration_zulip_server. Certifique-se de incluir o protocolo. (ex: https://chat.zulip.org)

  2. Cole a Chave de API que você copiou anteriormente na configuração do site chat_integration_zulip_bot_api_key

  3. Cole o endereço de e-mail que você copiou anteriormente na configuração do site chat_integration_zulip_bot_email_address

  4. Habilite chat_integration_zulip_enabled

  5. Vá para a aba Plugins, depois Chat Integration

  6. Vá para a aba Zulip, depois Add Channel (Adicionar Canal)

  7. Insira um Stream (Fluxo) para o qual você deseja enviar as notificações e um Subject (Assunto) para anexar às mensagens

  8. Save Channel (Salvar Canal)

  9. Use o botão Test (Testar) no canal que você acabou de criar para verificar se tudo está funcionando. Você deverá ver algo como isto:

  10. Configure algumas “Regras” para o seu canal, de acordo com as instruções do discourse-chat-integration.

10 curtidas

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 curtida