Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 2.57 KB

README.md

File metadata and controls

52 lines (36 loc) · 2.57 KB

eslint

⭐Spread Sheet interface slack emoji counter.

Run

9UZuWyFyNQE9Z821618131717_1618131792 (1)

Record

Screenshot_2021-04-11_18-23-48

Post(Example: Top 3)

resized-image-Promo

👀Overview

  1. (Set Reacji Channeler)
  2. Get Slack token(enable conversation scope)
  3. Set GAS properties(SLACK_TOKEN, POST_URL(post_url can fill dummy))
  4. Run init() - initialize option/save sheet
  5. Fill your slack channel_id in option sheet
  6. Run loadToSheet(): load channel conversation data. You can specify the condition by filling sheet!
  7. (testing) latestMonthAndPost() ... loadToSheet() + post top-3 reaction count comment

🔑Required Slack token scope

Screenshot_2021-04-04_15-58-10 (1)

  • channels:history

Set GAS Properties

Set your SLACK_TOKEN and POST_URL and to run. New GAS visual editor not support to set property.

function setProperty() {
  PropertiesService.getScriptProperties().setProperty("SLACK_TOKEN","xxxx-0000-...");
  PropertiesService.getScriptProperties().setProperty("POST_URL","https://...");
}

✋Auth test

curl -X POST -H "Authorization: Bearer token0000000" "https://slack.com/api/conversations.history?channel=channel0000000"

conversations.history method | Slack

📖Reference

Original code referenced site: https://zenn.dev/barusu/articles/0454005fc556dd

(This code doesn't work as channels.history API was deprecated.)