-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
Denis Alevi edited this page Jan 13, 2020
·
3 revisions
This page explains how to install ClusterBot on your own Slack workspace. You first need to create a new Slack App and install it in your workspace. Then you need to retrieve your authentication token and store on the computer which is used to send messages to Slack. This has to be done only once. Multiple users can then install the Python package and send messages to the same workspace with the generated authentication token.
- Go to https://api.slack.com/apps?new_app=1 to create a new Slack app.
Call it as you like (e.g.
ClusterBot
). - On the app settings page, add the following features:
-
Bot User: On the sidebar, go to Features -> Bot Users and
add a bot user (e.g. call
ClusterBot
). -
Permissions: On the sidebar, go to Features -> OAuth &
Permissions. Scroll down to Scopes and the following OAuth
Scopes:
- bot
- channels:read
- chat:write:bot
- Install the Slack app (sidebar: Settings -> Install App)
- Copy the Bot User OAuth Access Token from the Features -> OAuth & Permission page.
- Store the token in a config file on your computer.
slack-clusterbot
searches two locations for config files. First the system config file is loaded (default location:/etc/slack-clusterbot
). If you have multiple users who will useslack-clusterbot
to communicate with the same Slack workspace, this is the location where you want to store your token. The file would look like this:If you don't have access to the system config file, you can also store the token in the user config file (default location:[SLACK] token = 'xoxb-...'
~/.slack-clusterbot
).
Python package installation and usage instruction can be found on the repository main page.