-
-
Save patilswapnilv/c20fa5398d537cf29e696fd7ac9cbce1 to your computer and use it in GitHub Desktop.
Download all of your Team's custom Slack emojis.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get a token from https://api.slack.com/custom-integrations/legacy-tokens | |
# or if you don't have permissions to create one, you can inspect the Slack web client and you can get the one it is using | |
SLACK_TOKEN= | |
curl -q -s "https://slack.com/api/emoji.list?token=$SLACK_TOKEN" | jq -Mr '.emoji | to_entries | .[] | select(.value | startswith("http")) | "\(.key) \(.value)"' | sort | while read name url; do | |
fn="$name.${url##*.}" | |
echo "$fn" | |
curl -q -s -o "$fn" "$url" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment