Skip to content

Commit 1f641fc

Browse files
authored
Merge pull request #60 from kromiii/add-event-subscription-scope
必要なスコープに関するドキュメントを追加
2 parents 2fdd038 + b468b8a commit 1f641fc

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ go.work.sum
2424

2525
# env file
2626
.env
27+
.envrc
28+
29+
# database file
30+
plusplus.db
31+
32+
# binary file
33+
plusplusbot

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ The following settings are required to run this bot:
2626
- `channels:history` (to read channel message history)
2727
- `chat:write` (to send messages)
2828
- `user:read` (to read user information)
29+
- Event Subscriptions
30+
- Bot Events
31+
- `message.channels` (to handle channel messages)
32+
33+
See our example [slack-app-manifest.json](slack-app-manifest.json) for more details.
2934

3035
## Setup
3136

slack-app-manifest.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"display_information": {
3+
"name": "plusplusbot"
4+
},
5+
"features": {
6+
"bot_user": {
7+
"display_name": "plusplusbot",
8+
"always_online": false
9+
}
10+
},
11+
"oauth_config": {
12+
"scopes": {
13+
"bot": [
14+
"app_mentions:read",
15+
"channels:history",
16+
"chat:write",
17+
"users:read"
18+
]
19+
}
20+
},
21+
"settings": {
22+
"event_subscriptions": {
23+
"bot_events": [
24+
"message.channels"
25+
]
26+
},
27+
"interactivity": {
28+
"is_enabled": true
29+
},
30+
"org_deploy_enabled": false,
31+
"socket_mode_enabled": true,
32+
"token_rotation_enabled": false
33+
}
34+
}

0 commit comments

Comments
 (0)