slack-expire-files

1.0.1 • Public • Published

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 token
    • SLACK_KEEP_PINNED (default true) keep pinned files
    • SLACK_KEEP_DAYS (default 10) only delete files older than this many days

Readme

Keywords

none

Package Sidebar

Install

npm i slack-expire-files

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

4.03 kB

Total Files

5

Last publish

Collaborators

  • mbailey