Stream in real time a Slack channel to a web page.
Slack View is a web app that can show mutliple Slack channels as separate Slack View pages.
This is a live Slack View example of the Bad Actors Slack channel from https://slackview.mellican.com:
These bad actors aren't from Hollywood.
- Python 3
git clone https://github.com/meltaxa/slackview.git
cd slackview
pip3 install -r requirements.txt
cp config.yml-example config.yml
Update the config.yml file is the slack_app_token and slack_bot_token values.
Further configuration and customization is available inside the config.yml file. Instructions are provided within.
-
Click "Create New App"
-
Call the App "SlackView"
-
Under Features > OAuth & Permissions > Scopes, add the following OAuth scopes:
- channels:history
- channels:read
- users:read
- emoji:read
-
Under App Level Tokens > Generate Token and Scopes > add a token name and the connections.write scope.
-
Click "Generate"
-
Copy App Token value and update it in the config.yml file.
-
Click Install App to Workspace
Accept permissions by clicking the "Allow" button.
-
Copy the Bot User OAUTH Token value and update it in the config.yml file.
-
The SlackView "bot" app needs to join the channel by issuing the invite command from the channel:
/invite @SlackView
-
Start Slack View from command line:
python3 ./app.py
-
The console output will display the Slack View URL to use.
-
Create a config directory which will be mounted as a volume for Docker.
-
Place your config.yml in the config directory.
-
Run the Docker image with the volume switch to mount your config directory as /config in the image. For example:
docker run -v /path/to/config_dir:/config -p 7000:7000 -e TZ=Australia/Brisbane meltaxa/slackview
Note, by default the Docker container will be set in UTC timezone. Set the timezone using the
-e TZ=...
option. -
The Slack View app will be running on: http://<ip address>:7000
Slack View was originally written in PHP which only provided a snapshot of the channel and a page refresh is required to display the latest messages. For posterity, the php version of Slack View is available under the php branch.