Skip to content
This repository was archived by the owner on Jul 5, 2026. It is now read-only.
saitotaPublic archive

About

It's a serverless function that periodically archive old / no message channel.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

🤖 Slack Channel Archiver

It is a serverless function that periodically archive old / no message channel.

DEMO:

image

Description

Using Slack's LEGACY TOKEN to check channels, and archive old channel. This Lambda function starts periodically by AWS Cloudwatch Events. LEGACY TOKEN needs to be create manually, but AWS side automates environment construction by using Serverless Framework.

Requirement

Installation

  1. Create LEGACY TOKEN from Here

  2. Clone this repo.

$ git clone https://github.com/saitota/SlackChannelArchiver.git
  1. Modify environment_dev.yml 's two TOKEN to your token.
LEGACY_TOKEN: 'xoxp-000000000000-000000000000-000000000000-0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x'
  1. Deploy with Serverless Framework (you must aws-cli initialize before)
$ sls deploy ./SlackChannelArchiver
...
api keys:
  None
endpoints:
  None
functions:
  fnc: SlackChannelArchiver-dev-fnc
  1. Done! Wait a time to archive. (12:00 JST is the default)

🤔 Anything Else

I wrote article about this function.

古い Slack チャンネルを自動でアーカイブする機能を作りました - Qiita

🐑 Author

saitotak

✍ License

MIT

About

It's a serverless function that periodically archive old / no message channel.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages