A tool for updating certain things in your Slack Profile:
- Status (emoji, text, expiration)
- Profile pic
To start using this tool you first need to create an app and connect it to your workspace
- https://api.slack.com/apps
- Create New App
- Choose "from scratch"
- Give it a name and choose the workspace
- In the next window find and press "OAuth & Permissions"
- Follow "Scopes" > "User Token Scopes" > press "Add OAuth Scope"
- Add "users.profile:write" scope
- Then, within the same page find "OAuth Tokens for Your Workspace" > "Install to Workspace" > Install
- This will provide you with a Token that looks like "xoxp-...". Save it for the next step
Install the binary
cargo install slack_update
Set up your token from the previous step. It will be stored into ~/.config/slack_update/config.toml
slack_update set-token "xoxp-..."
Set emoji, text and expiration (as a unix timestamp)
slack_update status -e ":crazy:" -t gotcha! -x 1337
Set image (with cropping)
slack_update photo -w 150 ./bubble_gum.png
Get further help with
slack_update -h