From 235e37f6f41767600463926309bfdaf7bd7343c4 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Mon, 24 May 2021 15:51:32 -0400 Subject: [PATCH] Update screenshots and instructions, following Slack updates. --- Slack-bot-setup.md | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/Slack-bot-setup.md b/Slack-bot-setup.md index 1b8eb8e..069100b 100644 --- a/Slack-bot-setup.md +++ b/Slack-bot-setup.md @@ -16,39 +16,45 @@ Slack Docs: [Bot user tokens](https://api.slack.com/docs/token-types#bot) ## Create the **classic** Slack App > **It's important that you create a "Slack App (Classic)". Don't use the "Create New App" button, and don't opt in to the "granular permissions" feature.** -1. Navigate to ["Your Apps" page](https://api.slack.com/apps) and log into an account that has administrative permissions over the Slack Workspace (server) that you want to sync with Matterbridge. +1. Navigate to Slack's ["Your Apps" page](https://api.slack.com/apps) and log into an account that has administrative permissions over the Slack Workspace (server) that you want to sync with Matterbridge. - ![Slack's App page](https://github.com/42wim/matterbridge/blob/master/img/slack-setup-app-page.png) + Slack's 'Your Apps' page -2. Use [_**THIS LINK**_](https://api.slack.com/apps?new_classic_app=1) to create a "Slack App (Classic)". Choose any name for your app and select the desired workspace before submitting. :warning: _**USE THE LINK AND DON'T CLICK THE "Create New App" BUTTON**_. +2. Use [_**THIS LINK**_](https://api.slack.com/apps?new_classic_app=1) to create a "Slack App (Classic)". Choose any name for your app and select the desired workspace, and then submit. :warning: _**USE THE LINK AND DON'T CLICK THE "Create New App" BUTTON**_. - ![Create a Slack App](https://github.com/42wim/matterbridge/blob/master/img/slack-setup-create-app.png) + Create a 'Slack App (Classic)' -3. Navigate to the `Bot Users` page via the menu on the left side of the page. Click on the `Add a Bot User`, fill in the bot's details and validate to create the required bot. +3. Navigate to the "App Home" page via the menu on the left. Click "Add Legacy Bot User", fill in the bot's details, and submit. - ![Add a Bot User](https://github.com/42wim/matterbridge/blob/master/img/slack-setup-create-bot.png) + Add Legacy Bot User ## Grant scopes and install the Slack App -Now that we have a bot we need to give your new Slack App (and thus the bot) the right permissions on your Slack Workspace. +You'll need to give your new Slack App (Classic), and thus the bot, the right permissions on your Slack Workspace. -1. Via the menu on the left side of the page navigate to the `OAuth & Permissions` page and scroll down to the `Scopes` section. +1. Click "OAuth & Permissions" in the menu on the left, and scroll down to the "Scopes" section. Don't click the prominent "Update Scopes" button. Instead, click "Add an OAuth Scope". -2. Successively add the following permission scopes to your app: + Add an OAuth Scope + +2. Add the following permission scopes to your app: * Modify your public channels (`channels:write`) * Send messages as \ (`chat:write:bot`) * Send messages as user (`chat:write:user`) * Access user’s profile and workspace profile fields (`users.profile:read`) - Click on the `Save changes` button below the scopes once all scopes have been added. + App with scopes - ![Add permission scopes](https://imgur.com/kOnANiz.png) +3. Scroll to the top of the same "OAuth & Permissions" page and click on the "Install to Workspace" (or "Reinstall to Workspace") button: -3. Scroll to the top of the same `OAuth & Permissions` page and click on the `Install App` (or `Reinstall App`) button. This will give a pop-up menu summarising the permission scopes that you just added and will ask for your confirmation to add the new App with its bot to your Workspace. + Install to Workspace - ![Install the new Slack App](https://github.com/42wim/matterbridge/blob/master/img/slack-setup-install-app.png) +Confirm that the authorizations you just added are OK: -4. Once the App has been installed the top of the `OAuth & Permissions` page will show two tokens: an `OAuth Access Token` starting with `xoxp-...` and a `Bot User OAuth Access Token` starting with `xoxb-...`. You will need to use the second in your Matterbridge configuration. + Confirm install + +4. Once the App has been installed, the top of the `OAuth & Permissions` page will show two tokens: a "User OAuth Token" starting with `xoxp-...` and a "Bot User OAuth Token" starting with `xoxb-...`. You will need to use the second in your Matterbridge configuration: + + Bot User OAuth Token ## Invite the bot to channels synced with Matterbridge @@ -58,7 +64,7 @@ The only thing that remains now is to set up the newly created bot on the Slack ![Invite the bot user to a channel](https://github.com/42wim/matterbridge/blob/master/img/slack-setup-invite-bot.png) -2. Repeat the invite process for each channel that Matterbridge needs to sync. Also, don't forget to do this in the future when you want to sync more channels. +2. Repeat the invite process for each channel that Matterbridge needs to sync. :warning: Also, don't forget to do this in the future when you want to sync more channels. Now you are all set to go. Just configure and start your Matterbridge instance and see the messages flowing.