The CLI that helps you managing your Slack workspace.
- It archives channels that have no post last one month.
Create a Slack App in your Slack admin console.
- "Settings & Administration" > "Manage apps"
- Select "Build" on top-right corner.
- You'd be redirected to
https://api.slack.com/apps/
- "Create New App"
- Set name and stuff.
- Give the following Bot Token Scopes and install.
- channels:history
- channels:join
- channels:manage
- channels:read
Set your SLACK_TOKEN and run the CLI. dryRun
option is 1
(true) by default. When you're ready to archive channels, set 0
.
SLACK_TOKEN=xoxb-1234567890 slacker --dryRun=1