david
(David Taylor)
2018 年 5 月 18 日午後 12:33
21
mcwumbly:
I looked at the diff from the PR and thought perhaps it’d be necessary to add the conversations:history scope to the app on Slack, but I didn’t see that as an option. I tried adding the groups:history scope instead, but that did not seem to work.
For ‘Private Channels’ you need to add the groups:history scope. For “Direct Messages” you need to add the im:history scope. You will need to ‘reinstall’ the app for changes to scopes to take effect (Slack’s UI should have prompted you to do this).
Are you seeing anything at /logs when the errors occur?
「いいね!」 2
mcwumbly
(Dave McClure)
2018 年 5 月 18 日午後 2:04
22
I tried adding these scopes, and reinstalling:
groups:history
im:history
mpim:history
Still getting that 422, but don’t see anything obvious in the Discourse logs in the admin panel (this is a hosted instance, so I don’t have direct access to other logs).
「いいね!」 1
mcwumbly
(Dave McClure)
2018 年 6 月 25 日午後 2:37
23
I used the /discourse post command from a public channel to great effect… but threads are now more common in many channels than main channel conversations, so still hopeful that some day this will work in a thread…
Update: w00t! just tried it again and it worked!
/discourse post https://ourdomain.slack.com/archives/C0591LA4X/p1529529151000359?thread_ts=1529528304.000177&cid=C0592LA4X
as did:
/discourse post thread https://ourdomain.slack.com/archives/C0592LA4X/p1529528304000177
Another update : I was also able to post a thread from a private channel.
「いいね!」 9
tony612
(Tony Han)
2018 年 9 月 26 日午前 6:49
24
I got an error when using post transcript in a public channel:
{
"message": "Job exception: undefined method `[]' for nil:NilClass\n",
"progname": null,
"severity": 3,
"backtrace": "/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_message.rb:38:in `block in text'\n/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_message.rb:30:in `gsub'\n/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_message.rb:30:in `text'\n/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_message.rb:62:in `processed_text_with_attachments'\n/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_transcript.rb:155:in `block in build_slack_ui'\n/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_transcript.rb:155:in `map'\n/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_transcript.rb:155:in `build_slack_ui'\n/var/www/discourse/plugins/discourse-chat-integration/lib/discourse_chat/provider/slack/slack_command_controller.rb:95:in `block in process_post_request'\n/var/www/discourse/lib/scheduler/defer.rb:70:in `block in do_work'\n/var/www/discourse/vendor/bundle/ruby/2.5.0/gems/rails_multisite-2.0.4/lib/rails_multisite/connection_management.rb:63:in `with_connection'\n/var/www/discourse/lib/scheduler/defer.rb:68:in `do_work'\n/var/www/discourse/lib/scheduler/defer.rb:59:in `block (2 levels) in start_thread'",
"count": 9,
"env": {
"message": "Running deferred code 'Processing slack transcript request'"
},
"protected": false
}
「いいね!」 1
mbugowski
(Mateusz Bugowski)
2018 年 11 月 9 日午後 2:24
26
Hello, did you managed to fix this? I have the same one.
david
(David Taylor)
2019 年 1 月 4 日午後 1:52
27
To close the loop here - @mbugowski kindly contributed a pull request to fix the issue:
committed 01:03AM - 14 Dec 18 UTC
@tony612 if you update to the latest version it should now work.
「いいね!」 5
galligan
(Matt Galligan)
2020 年 7 月 31 日午後 3:25
28
Slack のスレッド内でもスラッシュコマンドが動作するようになりました!詳しくは👇🏼をご覧ください。
スレッド内でトランスクリプトを投稿するスラッシュコマンドのサポートが実現する可能性はあるでしょうか?
「いいね!」 6
mcdanlj
(Michael K Johnson)
2020 年 8 月 24 日午後 5:55
29
これが本当だと本当に願っています。そうすれば私の生活がずっと楽になるからです。しかし、Slack の API ドキュメントにはそのような記載が見当たりません。Giphy だけが特別なアルファテストアクセスを与えられたのでしょうか?私が見落としているドキュメントがありますか?
おそらく関連する追加情報として:今日、職場のあるスレッドで、1 人が「Slack がスレッド内での /giphy コマンドを許可していない」と不満を漏らし、Slack が「スレッド内ではサポートされていない」と表示している画像を投稿しました。一方、同じスレッド内で別の人が /giphy を正常に使用していました。ここには何らかの A/B テストが行われているようです。
「いいね!」 1
david
(David Taylor)
2021 年 4 月 22 日午後 5:57
30
いい知らせです!プラグインに変更をマージし、Slack の「ショートカット」API へのサポートを追加しました。これでスレッド内の \u003ckbd\u003e…\u003c/kbd\u003e をクリックし、「Discourse に投稿」を選択すると、Discourse に直接移動できるボタンが表示されます。スラッシュコマンドやスレッドの永続的リンクに煩わされる必要はもうありません!
committed 05:50PM - 22 Apr 21 UTC
Once configured, this adds a new item to the context menu of slack messages. Whe… n clicked, the menu item will generate a transcript and present the user with a custom "Post to Discourse" modal. This provides the same functionality as the existing slash-command interface, but is much more user friendly.
これを機能させるには、最新の chat-integration バージョンが必要で、さらに Slack アプリの設定を以下の新しい手順で変更する必要があります。
david:
\u003ckbd\u003eインタラクティビティとショートカット\u003c/kbd\u003e ページに移動し、\u003ckbd\u003e新しいショートカットを作成\u003c/kbd\u003e をクリックして「メッセージ上」を選択し、\u003ckbd\u003e次へ\u003c/kbd\u003e をクリックします。以下の詳細を入力してください:
名前: 「Discourse に投稿」(変更可能)
簡易説明: 「Discourse に投稿するためのトランスクリプトを作成」(変更可能)
コールバック ID: post_shortcut(変更しないでください)
いつも通り、ご意見やフィードバックがあればお知らせください
cc @mcwumbly @galligan @mcdanlj
「いいね!」 9
debryc
(Deborah Chang)
2021 年 4 月 22 日午後 7:17
31
すごい!
今すぐこの機能を追加しようと試みたのですが、残念ながら以下のエラーが発生しました。
Error: unable to fetch channel history from Slack
これは最新の Slack メッセージで試しました。
david
(David Taylor)
2021 年 4 月 22 日午後 7:26
32
このトピック に記載されているセットアップ手順をすべて実行しましたか?特に、ボットに必要なすべてのスコープを付与しましたか?
david:
スラッシュコマンドとトランスクリプトの投稿用 (必要ない場合はこのブロックをスキップしてください)
「Scopes / Bot Token Scopes」の下に、以下のスコープを追加してください。
users:read
channels:history
groups:history
im:history
debryc
(Deborah Chang)
2021 年 4 月 22 日午後 7:40
33
問題を見つけました!チャット統合アプリが、投稿しようとしていたチャンネルに存在しませんでした。アプリをチャンネルに招待したところ、トランスクリプトを投稿できるようになりました。ありがとうございます。
現在および今後作成されるすべての Slack チャンネルに、チャット統合アプリを自動的に追加することは可能でしょうか?
「Discourse で続ける」ボタンのテキストを、「トランスクリプトを作成」やショートカットの名前(デフォルトは「Discourse に投稿」ですが変更可能)のような表現に変更することは、UX の観点から理にかなっています。すべての Discourse サイトが自分たちを「Discourse」と呼んでいるわけではないためです。
「いいね!」 2
david
(David Taylor)
2021 年 4 月 22 日午後 7:48
34
残念ながら、それはできないと思います。ただし、私の認識が間違っている可能性もあります。エラーメッセージを改善して、ボットをチャンネルに追加する方法に関する手順を示せるか確認いたします。
なるほど、ご指摘ありがとうございます。デフォルトから「Discourse」という単語を削除するように更新することは可能です。それまでの間、管理パネルで「Continue on Discourse」を検索し、お好みの文言に変更することができます:Customize text in Discourse
編集:デフォルトのボタンテキストは現在、フォーラムに移動 となっています。
「いいね!」 4
Slack スレッドに記載されているすべての手順を実行しました。そこに記載されているすべてのスコープを追加し (さらに追加したものもあります)、関連するチャンネルにアプリを招待しました。
問題は、1% のケースでは機能するように見えることです。こちらをご覧ください。
しかし、公開チャンネルの 99% では、「Error: unable to fetch users from Slack」というエラーが発生します。
DM では、「Error: unable to fetch channel history from Slack」というエラーが発生します。
「いいね!」 1