https://github.com/bhuga/slack-admin
Use PhantomJS to fill in the gaps in Slack's Admin API
https://github.com/bhuga/slack-admin
Last synced: 3 months ago
JSON representation
Use PhantomJS to fill in the gaps in Slack's Admin API
- Host: GitHub
- URL: https://github.com/bhuga/slack-admin
- Owner: bhuga
- License: unlicense
- Created: 2015-10-16T19:55:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-15T14:31:20.000Z (about 9 years ago)
- Last Synced: 2025-01-14T00:29:31.266Z (4 months ago)
- Language: CoffeeScript
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PhantomJS Slack Admin
Uses PhantomJS (via Casperjs) to perform some Slack administration commands
not supported by the API.### Usage:
Authorization and team setting are done exclusively through environment
variables.```shell
$ export SLACK_TEAM=myteam
$ export SLACK_OKTA_USER=myuser
$ export SLACK_OKTA_PASSWORD=super-secure
```Then run slack-admin with a subcommand and the correct arguments:
```shell
$ slack-admin set-retention foo 30 # Set #foo's retention to 30 days
$ slack-admin set-retention foo default # Set #foo's retention to the team default
$ slack-admin get-retention foo # echos "default" or a number of days for the retention for #foo
```#### PhantomJS bugs
If you have 1.9.8 of PhantomJS, and casper seems to install it, you'll
get a bunch of Unsafe JavaScript messages at the end of the script, and
there's nothing you can do about it. Grep them out:```
slack-admin set-retention random 30 | grep -v "Unsafe JavaScript" | awk NF
```### Status
Currently this only supports Okta login without 2FA.
### License
UNLICENSE'd into the public domain.