mirror of
https://github.com/kou029w/daraz-san.git
synced 2025-12-08 16:46:10 +00:00
Slack Bot
| api/slack | ||
| public | ||
| src | ||
| .gitignore | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| vercel.json | ||
| yarn.lock | ||
だらずさん ⚡
- デプロイ
- Slack アプリの作成
- 環境変数の設定
デプロイ
Slack アプリの作成
Slack Applications → Create New App → From an app manifest
下記の Manifest の {Vercelのプロジェクト名} の部分を変更してコピペして、Slack アプリを作成します。
display_information:
name: だらずさん
features:
bot_user:
display_name: daraz-san
oauth_config:
scopes:
bot:
- channels:history
- chat:write
settings:
event_subscriptions:
request_url: https://{Vercelのプロジェクト名}.vercel.app/api/slack/events
bot_events:
- message.channels
環境変数の設定
Vercel Dashboard → 対象のプロジェクト → Settings → Environment Variables
SLACK_BOT_TOKEN... Slack Applications → だらずさん → Permissions ページにあるxoxb-から始まるボットトークンSLACK_SIGNING_SECRET... Slack Applications → だらずさん → Basic Information ページにある Signing Secret
これらの環境変数を設定後、再びデプロイして反映します。