Imposta le notifiche Zulip usando il plugin di integrazione chat

Questo howto descrive come configurare il provider Zulip incluso in discourse-chat-integration.

Configurazione di Zulip

  1. Nelle impostazioni personali di Zulip, vai su Bots

  2. Clicca su Add a new bot (Aggiungi un nuovo bot)

  3. Inserisci un nome e seleziona Incoming webhook (Webhook in entrata) come bot type (tipo di bot)

  4. Clicca su Add (Aggiungi)

  5. Annota la chiave API e l’indirizzo email, ti serviranno più tardi

Configurazione di Discourse

  1. Nelle impostazioni del tuo sito Discourse, inserisci l’indirizzo del server Zulip nell’impostazione chat_integration_zulip_server. Assicurati di includere il protocollo. (es. https://chat.zulip.org)

  2. Incolla la chiave API che hai copiato in precedenza nell’impostazione di sito chat_integration_zulip_bot_api_key

  3. Incolla l’indirizzo email che hai copiato in precedenza nell’impostazione di sito chat_integration_zulip_bot_email_address

  4. Abilita chat_integration_zulip_enabled

  5. Vai alla scheda Plugins (Plugin), quindi Chat Integration (Integrazione Chat)

  6. Vai alla scheda Zulip, quindi Add Channel (Aggiungi Canale)

  7. Inserisci uno Stream a cui vuoi inviare le notifiche e un Subject (Oggetto) da allegare ai messaggi

  8. Save Channel (Salva Canale)

  9. Usa il pulsante Test (Testa) sul canale che hai appena creato per verificare che tutto funzioni. Dovresti vedere qualcosa di simile a questo:

  10. Configura alcune “Regole” per il tuo canale, secondo le istruzioni di discourse-chat-integration.

10 Mi Piace

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 Mi Piace