Skip to content

spread-sheet-interface emoji counter in slack channel

Notifications You must be signed in to change notification settings

kijimaD/slack-emoji-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.)

About

spread-sheet-interface emoji counter in slack channel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published