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 installwithin the repository - Copy the
.env.examplefile to.env - Create a slack application on https://api.slack.com/apps
- Give the following permissions to the app on the
User Token Scopessubsection within thepermissionssection of your app:users.profile:writeto set the user statususers:writefor the away command
- Install the new app to your workspace
- Copy the OAuth token that is generated to the
.envfile, in theSLACK_TOKENvariable
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.commandsets your presence status in slack toawaycoffee.commandsets your status in slack to:coffee: Coffetimefor twenty minutes by default. Can be customized with theCOFFEE_*variables in your.envfile.lunch.commandsets your status in slack to:chompy: Having lunchfor sixty minutes by default. Can be customized with theLUNCH_*variables in your.envfile.