0.5.0 • Published 5 years ago
sans-cli v0.5.0
sans
set StAtus iN Slack from the command line interface
Install
npm i sans-cli -g
Environment variables
To set status you need set the SLACK_TOKEN as environment variable
export SLACK_TOKEN="slack-token"
You can get the Slack token from authentication or legacy token
Usage
Usage: sans [options]
Options:
-V, --version output the version number
-m, --message <text> add text to the status
-e, --emoji <type> add emoji to the status
-d, --duration <minutes> clear message, emoji and presence after time frame
-p, --presence <auto|away> set presence
-h, --help output usage information
Examples
Set a message
sans -m eating
Set an emoji
sans -e fork_and_knife
Set a presence
sans -p away
Set a message, an emoji, a presence and clean up in 25 minutes
sans -m eating -e fork_and_knife -p away -d 25
Clear status and presence
sans -m ''
You can also pass token as ENV variable
SLACK_TOKEN=token sans -m surfing -e surfer