Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.11 KB

File metadata and controls

32 lines (23 loc) · 1.11 KB

Setting up Slack

Not going to lie, setting up this is kind of confusing but here we go!

  1. Login and create a workspace
  2. Navigate to the Slack API and click Create new App

eanble access

  1. Click Incoming Webhooks and enable this.
  2. Click Add New Webhook to Workspace and link this to your workspace
  3. Copy the generated slack token:

slack hook

  1. At the root of the repo, duplicate the .env.example file and rename it to .env
cp .env.example .env
  1. Place the slack token TXXXXXXX/BXXXXX/HXXXXX in the .env file:
SLACK_TOKEN=TXXXXXXX/BXXXXX/HXXXXX
  1. Click and enable Event Subscriptions.
  2. Paste in the POST Endpoint that was genearted from the sls deploy script
  3. Under Subscribe to Bot Events, click Add Bot User Event and select app_mention

event subscription

  1. Click Save Changes
  2. A Yellow alert bar will then appear at the top, you will have to reinstall the app to enable the newly updated permissions