Slackでリアクションした人/していない人のリストを表示するSlashコマンドを作成する
- Typescript
- Node.js
- Express.js
- webpack
- Google App Engine(*)
- Slackアプリ作成
- botへのScope追加
command
channels:read
,groups:read
,im:read
,mpim:read
reactions:read
users:read
- Bot User OAuth Token を取得
- Signing Secret を取得
- アプリをワークスペースにインストール
- 該当するチャンネルにアプリを追加
.env
SLACK_TOKEN="[Bot User OAuth Token]"
SLACK_SIGNING_SECRET="[Signing Secret]"
(Google App Engineの場合)
app.yaml
runtime: nodejs14
instance_class: F1
env_variables:
SLACK_TOKEN: "[Bot User OAuth Token]"
SLACK_SIGNING_SECRET: "[Signing Secret]"
npm run build
npm run start