Collection of two tools I like to have for using slack. Reimplemented using ruby b/c .. ruby.
sls away
- setting presence away and turning on DnD in one commandsls active
- setting presence active and turning off DnD in one command
You can generate a Slack legacy token here: https://api.slack.com/custom-integrations/legacy-tokens
Your credentials should be safely stored inside the OS X keychain. To do this open Keychain Access (open spotlight, type Keychain). Select the login keychain. Click the plus on the bottom to add an account.
Keychain item name: slack-af-legacy-token Account Name: doesntmatter Password:
Click Add.
Now open your terminal an call security find-generic-password -l slack-af-legacy-token -w
once.
This will attempt to retrieve your password from Keychain and will popup the permissions dialog.
Pleaes select Always allow, for the workflow to be able to retrieve the credentails later on.