A tool to help archive channels that haven't been used for a while.
You'll need the following pre-requisites.
- Ruby 2.5.1
- Bundler
Then run:
bin/slack-channel-archiver
On the first run it'll install dependencies, which may be a bit noisy.
You'll need an API token to run it. This can be specified in three ways, in order of priority:
- Pass it as the first argument, e.g.
bin/slack-channel-archiver api-token
- Set it as env var
SLACK_API_TOKEN
, e.g.SLACK_API_TOKEN=api-token bin/slack-channel-archiver
- Set in
~/.slack-channel-archiver
, e.g.api-token: an-api-token
You can obtain a new API token by creating a new Bot Integration in Slack.