Sets the Slack status to "office" for this day. Useful to start this when your office computer boots.
Get a user token at https://api.slack.com/tutorials/tracks/getting-a-token
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh set -e token=xoxp-my-token tsEndofday=$(date -d 'tomorrow 00:00' +%s) curl -XPOST\ -H 'Content-Type: application/json'\ -H "Authorization: Bearer $token"\ --data-raw '{"profile":{"status_emoji":":office:","status_expiration":'$tsEndofday'}}'\ -s --output /dev/null\ https://slack.com/api/users.profile.set |