It is most definitely a starting point rather than a finished solution, but someone might find it useful.
Setup (assuming you are using a Raspberry Pi / Linux computer, although it will work on Windows as well).
1. Generate a security token for the slack group you want to stream.
2. Create an environment variable SLACK_API_TOKEN and put your security token in it.
Edit /etc/profile adding the export to the bottom:
Edit /etc/profile adding the export to the bottom:
sudo nano /etc/profile export SLACK_API_TOKEN=[my super long token]
3. Install slackclient and colorama using pip:
sudo pip3 install colorama sudo pip3 install slackclient
4. Download the slack_stream.py from gist:
wget https://gist.githubusercontent.com/martinohanlon/477b6ea4c3bdc679ddff92dfc3bff4a7/raw/8ec39d08a9501b25d381ac3b008e9cf7be92377a/slack_streamer.py
5. Run it:
python3 slack_streamer.py
GNU Screen session number 10 ! Thanks, Martin.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete