Created
September 12, 2021 03:09
-
-
Save axtstar/b787c71c1829098d2f1ff38c1ab06405 to your computer and use it in GitHub Desktop.
This file contains 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/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