slack-dnd-cli
v0.0.5
Published
This is CLI tool to enable/disable your Slack.
Downloads
7
Readme
About
This is CLI tool to enable/disable your Slack.
How to configure?
- Generate
SLACK_TOKEN
by creating a new app https://api.slack.com/apps - Open the "Oauth & Permissions"
- Add a new scope that will allow you to control DND
- scroll down to
User Token Scopes
- add scope
dnd:write
- Install
slack-dnd-cli
withnpm
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 minutesslack-dnd-cli --dnd stop
ends DND mode