Skip to content

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

License

Notifications You must be signed in to change notification settings

oystersjp/SlackChannelArchiver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%