Code Monkey home page Code Monkey logo

slack-status-cli's Introduction

Slack Status CLI

Lightning fast Slack status updates!โšก

See it in action ๐Ÿ”ฅ

Setting things up ๐Ÿ”จ

  • Create a new Slack app
  • Select from an app manifest
  • Select your workspace
  • Paste the following YAML app manifest:
display_information:
    name: slack-status-cli
    description: Lightning fast Slack status updates!
oauth_config:
    scopes:
        user:
        - dnd:write
        - emoji:read
        - users.profile:read
        - users.profile:write
        - users:read
        - users:write
  • Create ๐Ÿš€
  • Install to workspace
  • Go to OAuth and permissions
  • Copy User Auth Token

Download ๐Ÿ“ฅ

Get the latest version from Releases

Make it executable

chmod +x st_<version_platform_arch>

Move to your $PATH

mv st_<version_platform_arch> <$PATH>/st

Create new profile ๐Ÿป

st profile --create  # shorthand -c
Add your profile name and OAuth token: image

Usage ๐ŸŒˆ

Add new status ๐ŸŽง

Add your status, duration and emoji

st add

Select status ๐Ÿ‘€

st set

Set yourself away ๐Ÿ˜ด

st away

Enable Do Not Disturb (DND) while away ๐Ÿ˜ท

st away --dnd <time duration>

Set yourself active ๐Ÿ„

Remove any status, or DND settings

st active

Profile management ๐Ÿ”ง

Set default profile If you have multiple slack profiles, select default profile using:

st profile --default  # shorthand -d

Manage profile: change name, token, delete or update status

Uses default profile:

st profile --manage  # shorthand -m

Select profile to manage:

st profile --manage --select # shorthand -m -s

Show current/default profile

st profile --show

Setting time duration โฐ

Valid durations for time includes:

minutes, hours or days. DEFAULTS to minutes

NOTE: use single or double quotes around the time duration values.

OPTIONS for the duration:

  • minute: m, min, mins :: Example: "10 m", "10 mins", 10minute, "10 minutes"

  • hour: h, hr, hour, hours :: Example: "1 h", 1hr, "1 hour", "1 hours"

  • day: d, day, days :: Example: 2d, "2 day", 2days

slack-status-cli's People

Contributors

yankeexe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

slack-status-cli's Issues

Show duration in local time to the user

When users set a status or enable DND, show till when the status will be in effect.
Currently, we only show how long the status will be in effect; but it would be intuitive for users to know till when it will be in effect same as the Slack app:
image

Update `add` sub-command to create and set

Currently, add will create a new slack status for user but set it; user has to use st set command.

Enable users to create and set status at the same time.

Add new --set flag for add sub-command, that will set the status after creating it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.