Your Mattermost server needs to be accessible from your Discourse server in order to connect them. It is recommended that you use HTTPS, but HTTP should also work.
In your Mattermost System Console, under Custom Integrations, check that these settings are enabled:
Enable Incoming Webhooks
Enable integrations to override usernames
Enable integrations to override profile picture icons
Enable Custom Slash Commands (if you want slash commands)
Login to your team, click your name in the top left, then click Integrations
Choose Incoming Webhooks, Add incoming Webhook
Enter a “Display Name”, “Description”, and choose a random channel from the list (it doesn’t matter which one, Discourse will override this)
Save
Copy the URL provided, you’ll need it later
Setup Discourse
Paste the URL you copied into the chat_integration_mattermost_webhook_url site setting
Enable chat_integration_mattermost_enabled
Setup some “Rules” for your channels, according to the discourse-chat-integration instructions. Channel identifiers look like #town-square or @davidtaylor.
Click Test on one of the channels to check everything’s working. You should receive a message like this:
Slash Commands
Slash commands allow you to manage your rules from inside Mattermost. To get it working:
If you didn’t already, enable Enable Custom Slash Commands in your Mattermost System Console
Login to your team, click your name in the top left, then click Integrations
Hello! I am getting a broken image link to the right of the mattermost post. I tried to see the image url and it looks like an actual post instead of an image:
Make sure you copied the webhook URL correctly, and that there are no spaces before/after the URL. Is your mattermost server accessible to the internet? Or just an internal network?
3 إعجابات
csmu
(Keith John Hutchison - Ceiteach Seán Mac Úistin)
12
What’s the best way to handle multiple teams / multiple mattermost servers?
لدي تكامل دردشة مع Mattermost ممكّن - لقد اشتركت في جميع فئات “المستوى الأعلى” التي يتم عرضها عبر الأمر “/discourse watch” ولكن المشاركات في “الفئات الفرعية” لم يتم التقاطها.
مرحباً، شكراً على الرد!!! سيكون ذلك رائعاً لو تمكنت من معرفة “كيف”. هل الفئات الوحيدة التي يبدو أن المكون الإضافي يتعرف عليها هي الفئات العلوية؟
لقد وجدت/جربت خيار “جميع الفئات” ولكنه لا يبدو أنه يعمل أيضاً؟ يا إلهي، أود حقاً أن أستخدم “الكل”، سيكون ذلك مثالياً… هل أنا “أفعل ذلك بشكل خاطئ”؟ انظر لقطة الشاشة أدناه
مرحباً @david… المشكلة في ما سبق هي أنني لا أستطيع معرفة كيفية الاشتراك في “فئة فرعية” ولا يبدو أن هناك “الكل” يمكنني استخدامه؟ أود حقًا حل هذه المشكلة.
باستخدام أوامر الشرطة المائلة، أعتقد أنه يمكنك مشاهدة جميع الفئات بهذا الشكل:
/discourse watch
ولكن أسهل طريقة لتكوين قواعد الإشعارات هي من لوحة تحكم مسؤول Discourse. هناك، يتم عرض جميع الخيارات بوضوح في واجهة المستخدم، لذلك لا داعي لمحاولة فهم بناء جملة “أمر الشرطة المائلة” الدقيق. تحقق من قسم ‘تكوين القواعد’ من وثائق المكون الإضافي لمزيد من المعلومات.
(“بدون فئة” في القائمة المنسدلة هو بالتأكيد وصف سيء لما يعنيه بالفعل. سأقوم بإصلاح ذلك)
أعتقد أن الفئات الفرعية محذوفة من نص المساعدة لتوفير المساحة. ولكن لا يزال بإمكانك الاشتراك في الفئات باستخدام “الاسم المختصر” الخاص بها (اسم الفئة الفرعية من عنوان URL). لذا في حالة #howto:admins هنا على Meta، سيكون /discourse watch admins.