Skip to content

Commit a82dfe8

Browse files
committed
READMEファイルの各言語版において、Slackアプリの「Subscribe to bot events」設定に必要なイベントを追加し、ボットのキャッシング機能の重要性について説明を追記しました。
1 parent 54ee9a7 commit a82dfe8

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

README.ja.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ app_mentions:read, users:read, channels:history, groups:history, chat:write, gro
4141
groups:read, files:read
4242
```
4343

44+
また、Slackアプリの設定で「Subscribe to bot events」を構成する際、以下のイベントを追加する必要があります:
45+
- `app_mention` - ボットがメンションされたとき
46+
- `message.channels` - パブリックチャンネルでメッセージを受信(スレッドキャッシュに必要)
47+
- `message.groups` - プライベートチャンネルでメッセージを受信(スレッドキャッシュに必要)
48+
49+
`message.channels``message.groups`イベントは、ボットのキャッシング機能に不可欠です。これにより、Slackの厳しいレート制限(スレッド履歴取得は1分間に1回)を回避し、レート制限に達することなくリアルタイムでスレッドのコンテキストを維持できます。
50+
4451
公式のSlackBotプラグインのセットアップ手順については以下をご参照ください。
4552

4653
https://github.com/langgenius/dify-official-plugins/blob/main/extensions/slack_bot/README.md

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ app_mentions:read, users:read, channels:history, groups:history, chat:write, gro
4141
groups:read, files:read
4242
```
4343

44+
Additionally, when configuring "Subscribe to bot events" in your Slack app settings, you need to add the following events:
45+
- `app_mention` - When someone mentions your bot
46+
- `message.channels` - To receive messages in public channels (required for thread caching)
47+
- `message.groups` - To receive messages in private channels (required for thread caching)
48+
49+
The `message.channels` and `message.groups` events are essential for the bot's caching mechanism, which helps avoid Slack's strict rate limits (1 request per minute for thread history). This allows the bot to maintain real-time thread context without hitting rate limits.
50+
4451
For details on how to set up the official SlackBot plugin, see:
4552

4653
https://github.com/langgenius/dify-official-plugins/blob/main/extensions/slack_bot/README.md

README.pt_BR.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ app_mentions:read, users:read, channels:history, groups:history, chat:write, gro
4141
groups:read, files:read
4242
```
4343

44+
Além disso, ao configurar "Subscribe to bot events" nas configurações do seu aplicativo Slack, você precisa adicionar os seguintes eventos:
45+
- `app_mention` - Quando alguém menciona seu bot
46+
- `message.channels` - Para receber mensagens em canais públicos (necessário para cache de threads)
47+
- `message.groups` - Para receber mensagens em canais privados (necessário para cache de threads)
48+
49+
Os eventos `message.channels` e `message.groups` são essenciais para o mecanismo de cache do bot, que ajuda a evitar os limites de taxa rigorosos do Slack (1 solicitação por minuto para histórico de threads). Isso permite que o bot mantenha o contexto da thread em tempo real sem atingir os limites de taxa.
50+
4451
Para mais detalhes sobre como configurar o plugin oficial SlackBot, consulte:
4552

4653
https://github.com/langgenius/dify-official-plugins/blob/main/extensions/slack_bot/README.md

README.zh-Hans.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ app_mentions:read, users:read, channels:history, groups:history, chat:write, gro
4141
groups:read, files:read
4242
```
4343

44+
另外,在配置 Slack 应用的"Subscribe to bot events"时,需要添加以下事件:
45+
- `app_mention` - 当有人提及你的机器人时
46+
- `message.channels` - 接收公共频道中的消息(线程缓存所必需)
47+
- `message.groups` - 接收私有频道中的消息(线程缓存所必需)
48+
49+
`message.channels``message.groups` 事件对于机器人的缓存机制至关重要,这有助于避免 Slack 严格的速率限制(线程历史记录每分钟只能请求一次)。这使得机器人能够实时维护线程上下文而不会触发速率限制。
50+
4451
有关如何设置官方 SlackBot 插件的详细信息,请参阅:
4552

4653
https://github.com/langgenius/dify-official-plugins/blob/main/extensions/slack_bot/README.md

0 commit comments

Comments
 (0)