1.0.1 • Published 6 years ago
slack-expire-files v1.0.1
Overview
This comes from https://www.npmjs.com/package/slack-delete-files but I was unable to find a repo for this package I could submit PRs to.
What this does beyond the original module:
- files.delete is a Tier 3 rate limited slack API, meaning only 50+ req/min are allowed. I've added bottleneck to only fire the request every 1s.
- I wanted to run this as something automatable, so I've removed
inquirer
and switched to the following env vars:SLACK_TOKEN
(required) your slack API tokenSLACK_KEEP_PINNED
(default true) keep pinned filesSLACK_KEEP_DAYS
(default 10) only delete files older than this many days