Skip to content

Instantly share code, notes, and snippets.

View threetreeslight's full-sized avatar

threetreeslight threetreeslight

View GitHub Profile
@threetreeslight
threetreeslight / script.rb
Created August 9, 2019 06:29 — forked from edwardkenfox/script.rb
slack teamのactiveなアカウントの画像をDLしてくれる君
require "slack"
require 'open-uri'
YOUR_SLACK_APP_OAUTH_TOKEN = ENV['YOUR_SLACK_APP_OAUTH_TOKEN']
Slack.configure do |config|
config.token = YOUR_SLACK_APP_OAUTH_TOKEN
end
members = Slack.users_list["members"].select { |m| !m["deleted"] }