At-a-glance multi-account presence checker for Slack Designed for use with GeekTool or similar.
I have multiple slack accounts for various groups and organisations, and wanted a way to quickly see an overview of who was online.
This script uses the Slack API to generate a text contacts list of all users who are online across the slack accounts that you configure.
You can use something like GeekTool or Übersicht to stick the output of it on your desktop.
Python 3
-
Create an accounts.json, mapping account names to api tokens:
{"slack account 1": "token-for-account-1", "slack account 2": "token-for-account-2" }
(Generate personal API tokens at https://api.slack.com/web#authentication)
-
Create a virtualenv and activate
-
Install requirements
pip install -r requirements.txt
python3 slackwho.py
All online users, followed by the account(s) they are active on.
:: slackwho ::
user1 accountlist
user2 accountlist
user3 accountlist
python3 slackwho.py --html