sans-cli
v0.5.0
Published
set StAtus iN Slack from the command line interface
Downloads
10
Readme
sans
set StAtus iN Slack from the command line interface
Install
npm i sans-cli -gEnvironment 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 informationExamples
Set a message
sans -m eatingSet an emoji
sans -e fork_and_knifeSet a presence
sans -p awaySet a message, an emoji, a presence and clean up in 25 minutes
sans -m eating -e fork_and_knife -p away -d 25Clear status and presence
sans -m ''You can also pass token as ENV variable
SLACK_TOKEN=token sans -m surfing -e surfer