A small command line utility to update your status and presence in slack. It includes .command
files that are detected by Spotlight on macOS.
- Clone this repository
- Execute
yarn install
within the repository - Copy the
.env.example
file to.env
- Create a slack application on https://api.slack.com/apps
- Give the following permissions to the app on the
User Token Scopes
subsection within thepermissions
section of your app:users.profile:write
to set the user statususers:write
for the away command
- Install the new app to your workspace
- Copy the OAuth token that is generated to the
.env
file, in theSLACK_TOKEN
variable
Open Spotlight on your Mac with ⌘ + Space
and search for one of the files in the commands
folder
The first time you might need to write the full name of the .command file, i.e.
away.command
away.command
sets your presence status in slack toaway
coffee.command
sets your status in slack to:coffee: Coffetime
for twenty minutes by default. Can be customized with theCOFFEE_*
variables in your.env
file.lunch.command
sets your status in slack to:chompy: Having lunch
for sixty minutes by default. Can be customized with theLUNCH_*
variables in your.env
file.