Created
March 20, 2020 13:10
-
-
Save DKunin/7eb158c89dafb4122029596ca4bea0a3 to your computer and use it in GitHub Desktop.
Slack Statuses
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/bash | |
curl -G -v -X POST --data-urlencode "profile={\"status_text\":\"$1\",\"status_emoji\":\"$2\"}" https://slack.com/api/users.profile.set?token=$SLACK_TOKEN | |
# SlackStatus Away | |
curl -X POST https://slack.com/api/users.setPresence --data "token=$SLACK_TOKEN&presence=away" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment