Skip to content

Instantly share code, notes, and snippets.

@axtstar
Created September 12, 2021 03:09
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 axtstar/b787c71c1829098d2f1ff38c1ab06405 to your computer and use it in GitHub Desktop.
Save axtstar/b787c71c1829098d2f1ff38c1ab06405 to your computer and use it in GitHub Desktop.
#!/bin/zsh
eval "$(cat .env <(echo) <(declare -x))"
curl \
-H 'Content-Type: application/json; charset=UTF-8' \
-H "Authorization: Bearer "${SLACK_USER_TOKEN} \
-X POST https://slack.com/api/users.profile.set \
-d '{ "profile": { "status_text": "'$1'", "status_emoji": "'$2'" }}' -vvv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment