Skip to content

Instantly share code, notes, and snippets.

@akameco
Last active December 2, 2019 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akameco/3dbe080a586efa5ef8083808b167a5d4 to your computer and use it in GitHub Desktop.
Save akameco/3dbe080a586efa5ef8083808b167a5d4 to your computer and use it in GitHub Desktop.
slackのtimesを雑にexportしておく

常にTwitterやブログとかにパブリックに発信していればいいのだけど、会社のtimesに書くこともある。 しかし、退職時にはそれが閲覧できなくなってしまう。それは損失なので発言を全てエクスポートしておく。

slack-history-exportを使うとログがjsonとして取得できる。 https://github.com/hisabimbola/slack-history-export

npx slack-history-export -t $SLACK_TOKEN -c times_akameco -f 'times_akameco.json'

SLACK_TOKENhttps://api.slack.com/custom-integrations/legacy-tokens で発行できる。 Legacy informationとあるが使えるのでそれでいい。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment