Script to help manage a slack team. Since it's not possible at the moment (September 2015) to invite or revoke a user using the Web API, the script display a list of email to users to add and to remove.
- python3
- python3-virtualenv
git clone https://github.com/LaTechAmienoise/slack
cd slack
virtualenv -p /usr/bin/python3 .
./bin/pip install -r requirements.txt
First, you need to create a Slack Token (see at the bottom of the page).
Create config.ini
from config.ini.sample
with the following contents:
[slack]
token = xoxp-xxxxxxxx
[csv]
delimiter = ,
quotechar = "
% ./bin/python csv2slack.py users.csv
INFO:root:Found 19 users in CSV
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): slack.com
INFO:root:Found 5 users in Slack
Users to add: [email protected], [email protected]
Users to delete: [email protected], [email protected]