A script that download files uploaded to Slack.
- Ruby 2.7+
$ bundle config set path vendor/bundle --local
$ bundle config set parallel 4 --local
$ bundle install
- Basic Information
- Permissions
- Scopes
- Add an OAuth Scope
- Add
files:read
Create .env
and set ACCESS_TOKEN
.
ACCESS_TOKEN=xxxxx
$ bundle exec ruby download.rb
ACCESS_TOKEN - OAuth Access Token of Slack
DOWNLOAD_DIR - Donwload directory (default: download)
WAIT_SECONDS_ON_ERROR - Wait seconds on error (default: 10)
MIT License