RIGDOCKS

Creating a Slack Bot

Create the bot that the RIGDOCKS APIs use to send messages to Slack.

Creating the bot

  1. 1Open the Slack app management page

  2. 2Click "Create New App"

  3. 3Select "From scratch"

  4. 4Enter a name for the bot, select the workspace and click "Create App"

    The app is created.

  5. 5Select "OAuth & Permissions"

  6. 6Click "Add an OAuth Scope" and add the required scopes

    The RIGDOCKS APIs need the following scopes.

    ScopeAllows
    channels:readReading basic channel information
    chat:writeSending messages to channels
    im:writeSending direct messages
    usergroups:readReading user group information
    users:readReading user information
  7. 7Click "Install App"

  8. 8Click "Install to <workspace name>"

  9. 9Click "Allow"

    The token used by the RIGDOCKS APIs is the part shown below.

Adding the bot to a channel

To send messages to a channel with AZ_Slack_PostChannelMessage, do the following.

  1. 1Open Slack and go to the channel the bot will post to

  2. 2Type "/app" in the message box and select "Add apps to this channel"

  3. 3Click "Add" next to the app you created

  4. 4Done when "App added" is shown

Changing the bot icon

  1. 1Go to Display Information in Basic Information

  2. 2Click Add App Icon

  3. 3Select an image

    The image must be square, 512px to 2000px on each side.

    The setup is complete.