Skip to content

Instantly share code, notes, and snippets.

#!/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