{"id":19712407,"url":"https://github.com/springernature/slack-channel-archiver","last_synced_at":"2026-04-14T02:31:56.009Z","repository":{"id":66133275,"uuid":"151578250","full_name":"springernature/slack-channel-archiver","owner":"springernature","description":"Simple archiver for infrequently used Slack channels.","archived":false,"fork":false,"pushed_at":"2024-09-27T14:25:01.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":173,"default_branch":"master","last_synced_at":"2025-02-27T20:22:25.403Z","etag":null,"topics":["archiving","ruby","slack"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/springernature.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-04T13:43:42.000Z","updated_at":"2024-09-27T14:25:04.000Z","dependencies_parsed_at":"2025-01-10T14:39:59.580Z","dependency_job_id":"26fd909a-d048-4b00-950d-6dde2d28fddc","html_url":"https://github.com/springernature/slack-channel-archiver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/springernature/slack-channel-archiver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springernature%2Fslack-channel-archiver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springernature%2Fslack-channel-archiver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springernature%2Fslack-channel-archiver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springernature%2Fslack-channel-archiver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/springernature","download_url":"https://codeload.github.com/springernature/slack-channel-archiver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springernature%2Fslack-channel-archiver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31779943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archiving","ruby","slack"],"created_at":"2024-11-11T22:17:04.490Z","updated_at":"2026-04-14T02:31:55.992Z","avatar_url":"https://github.com/springernature.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Channel Archiver\n\nA simple tool to help archive public channels that haven't been used for a while.\n\n## Requirements\n\nThe following pre-requisites are required.\n\n* [Ruby](https://www.ruby-lang.org/) 3.3.4\n* [Bundler](https://bundler.io/)\n\nThis has only been tested in *nix environment (e.g. MacOS/Linux) although there's nothing tying it to these platforms.\n\nYou'll also require `bot` and `user` API tokens from Slack. You can obtain new API tokens by [creating a new App](https://api.slack.com/apps/new) in Slack. \n\nThe bot token must have the following scopes:\n\n* `channels:history`\n* `channels:manage`\n* `channels:read`\n\nThe user token must have the following scopes:\n\n* `channels:history`\n* `channels:read`\n* `channels:write`\n\n## Configuration\n\n### API Tokens\n\nThe `bot` and `user` API tokens can be specified in three ways, in order of priority:\n\n1. Pass it as the trailing arguments, e.g. `bin/slack-channel-archiver 90 bot-api-token user-api-token`\n1. Set it as env var `BOT_SLACK_API_TOKEN`/`USER_SLACK_API_TOKEN`, e.g. `BOT_SLACK_API_TOKEN=api-token USER_SLACK_API_TOKEN=another-token bin/slack-channel-archiver`\n1. Set in `~/.slack-channel-archiver`, e.g. \n```\nbot-api-token: an-api-token\nuser-api-token: another-api-token\n```\n\n### Configuration File\n\nYou can use the following configuration options in `~/.slack-channel-archiver`:\n\n| Name | Type | Description |\n| --- | --- | --- |\n| bot-api-token | string | Slack bot API token, as described above |\n| user-api-token | string | Slack user API token, as described above |\n| ignored-channel-names | list of strings | Names of channels that should never be archived, even if they match the archive criteria |\n\nFor example:\n```\nbot-api-token: xoxb-a-bot-api-token\nuser-api-token: xoxp-a-user-api-token\nignored-channel-names:\n- channel1\n- channel2\n```\n\n## Running\n\nUsage:\n\n    bin/slack-channel-archiver [inactivity-period = 90 days] [bot-api-token] [user-api-token]\n\nOn the first run it'll install dependencies, which may be a bit noisy.\n\nDue to rate limits on the Slack side it'll run quite slowly - about 1 channel/second will be tested. Also please note that channels will be marked as archived by the user who installed the app, as Slack doesn't allow bots to archive channels.\n\n## Support\n\nSupport is on a best-effort basis. We'll endeavour to keep it in a good state and to respond to any issues/requests, but it works nicely for our purposes and is unlikely to see any major feature enhancements.\n\n## Licencing \n\nThis code is licenced under an MIT licence as described in [LICENSE](LICENSE).\n\nCopyright \u0026copy; Springer Nature Ltd.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringernature%2Fslack-channel-archiver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringernature%2Fslack-channel-archiver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringernature%2Fslack-channel-archiver/lists"}