Skip to content

tgorskievo/slack-dnd-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is CLI tool to enable/disable your Slack.

How to configure?

  1. Generate SLACK_TOKEN by creating a new app https://api.slack.com/apps
  2. Open the "Oauth & Permissions"
  3. Add a new scope that will allow you to control DND
  • scroll down to User Token Scopes
  • add scope dnd:write
  1. Install slack-dnd-cli with npm
  • npm i -g slack-dnd-cli

How to use?

Add SLACK_TOKEN to your env or add this environment variable to the command e.g.: SLACK=TOKEN=your-slack-token slack-dnd-cli --dnd start --time 25

Example commands:

  • slack-dnd-cli --dnd start --time 25 starts DND mode for 25 minutes
  • slack-dnd-cli --dnd stop ends DND mode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published