Skip to content

Instantly share code, notes, and snippets.

@DKunin
Created March 20, 2020 13:10
Show Gist options
  • Save DKunin/7eb158c89dafb4122029596ca4bea0a3 to your computer and use it in GitHub Desktop.
Save DKunin/7eb158c89dafb4122029596ca4bea0a3 to your computer and use it in GitHub Desktop.
Slack Statuses
#!/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