0.5.0 • Published 5 years ago

sans-cli v0.5.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

sans

GitHub license npm version Build Status

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
0.5.0

5 years ago

0.4.0

5 years ago

0.3.0

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago