discourse-chat-integration プラグインを使用した Slack 通知の設定

Thanks for the link.

As I understand, all notifications will be fired using one discourse user. For me that’s a bit rigid. Ideally I need different users for different channels. Our discourse will serve company wide purposes, andalso support projects, which are kind of private.

But, as a workaround / simple solution I can live with a setup, where there are implicit rules like: mute all categories, which are not public. That way if I create a new category for a new project, posts from that new category won’t appear in the company wide channel.

「いいね!」 1

Yes, the issue was related to the SSL certificate. It has been solved. Thanks for the immediate help :slight_smile:
Another big thing is, I am embedding the discourse subdomain into our react product. Whenever a user clicks on slack notification of topic/post creation , our intended goal is to redirect user to our product’s domain, instead of discourse subdomain. I am not able to set this redirection. Kindly suggest any way.

I created the slack app as per the instructions. The issue I’m having is that other users want to add notifications to private channels I don’t have access to.
Is there a way to notify private slack channels that the creator of the slack app doesn’t have access too?
Or how can other users grant permissions to the app?

Also if I understand correctly, those slack app tokens that are entered into the Discourse’s plugin configuration allow access to my private channels, correct? This might be undesirable since any Discourse admin can see those tokens in the settings section. Would be good to warn about that, or remove from the instructions the groups:history and im:history grants.

Our makerforums discourse is intended to bring together a lot of related but separate communities. These communities are organized in our discourse by category or sub-category. Some of these communities have their own slack spaces.

At least one community, associated with a sub-category, would like slack integration, but as far as I can tell, there can be only one for the whole discourse.

Am I missing something?

Unfortunately you can only have one slack community connected at the moment. It would be nice to allow multiple connections per-provider in the future.

「いいね!」 3

Thanks for confirming. It looks like it would be substantial work to move to installing arbitrarily many chat integrations, especially to do so without backward compatibility problems.

For anyone else with this problem: As an alternative we are exploring for one-way notification in slack that posts have been made in discourse, we realized that it makes sense to take advantage of Discourse’s RSS support and hook up the slack RSS app:

「いいね!」 4

For the next person who sees this: I saw 422 No Record in the slack integration when trying to send a test message from the admin interface in my discourse.

The logs (https://mydiscourse/logs) showed the real error, which was in my case "{\"ok\":false,\"error\":\"channel_not_found\"}"}

The reason was that /discourse watch in a private channel of the Staff category showed up with a slack channel name like #private instead of the actual channel name, so I had to set the correct channel name in the discourse administrative interface to the actual channel name; then it worked.

「いいね!」 2

これを使って、Slack と Discourse のいくつかのチャンネル間で永続的なフィードを同期させることは可能でしょうか?

こんにちは、@david さん。discourse-chat-integration プラグインを使用して、Discourse から Slack への一方向統合を設定することは可能でしょうか?

Slack に新しいアプリを作成せずに、メッセージを送信するための Slack ウェブフックを設定したいと考えています。

Discourse to Slack (one-way) integration の手順に従いましたが、成功しませんでした。プラグインを有効にし、ウェブフック URL を設定した後、設定を続行するためのダッシュボードが見つかりませんでした。

プラグインを有効にし、ウェブフックURLを追加し、さらに「slack」プロバイダーを有効にする必要があります。設定名は「chat integration slack enabled」です。これを設定すると、管理パネル(プラグイン → チャットインテグレーション)にslackタブが表示されるはずです。

「いいね!」 4

@david さん、ありがとうございます。オプションを見つけました。これで動作します :smile:

「いいね!」 2

これに対する解決策が見つかった方はいますか?

こんにちは、

Discourse と Slack の統合を設定するために、このハウツーに従いました。
ルールをテストすると、DiscourseChat::ProviderError というエラーが表示されますが、詳細は一切示されておらず、ブラウザのコンソールでもエラーについてほとんど情報が得られません。
原因が何かご存知でしょうか?

ありがとうございます

管理者ログを確認しましたか?

「いいね!」 1

@Nick_Shearer_nsheare @Bas の皆様、ぜひお試しください。

残念ながら、Slack のスラッシュコマンド API ではユーザーが指定したチャンネル名を取得できないため、ID を使用する必要があります(詳細はコミットメッセージを参照)。ルール管理に常にスラッシュコマンドを使用している場合、影響はありません。

「いいね!」 3

とても素晴らしいです!:slight_smile:

今週、ステージング環境を更新して、結果をお知らせします!

「いいね!」 2

Slack ボットをチャンネルと連携させるのに、ずいぶん長い間苦労しています。Discourse から公開チャンネルに投稿できるようにするための、何か見落としている魔法のようなものはありますか?Discourse から直接通知は受け取れるのですが、Discourse からチャンネルに投稿することはできないようです。インバウンド Webhook をインテグレーションに追加しようとしたのですが、Discourse のツールチップには「推奨されていません」と表示されます。ご助力いただければ幸いです。

わかった!別のフォーラムで、ログが保存される場所が異なるという投稿を見つけました。エラーメッセージは非常に明確でした。ボットユーザーがそのチャンネルに投稿するには、まずそのパブリックチャンネルに追加される必要があったのです。そんな手間が必要だとは思いませんでしたが、これが解決策でした!

「いいね!」 5

こんにちは

Slack の受信メッセージにカスタムテキストを追加する方法はありますか?探してみましたが、見つかりませんでした。

「いいね!」 1

スレッド内のメッセージの下に、フォーラムのスレッドへの回答を送信することは可能でしょうか?

「いいね!」 1