0.0.5 • Published 5 years ago
slack-dnd-cli v0.0.5
About
This is CLI tool to enable/disable your Slack.
How to configure?
- Generate
SLACK_TOKENby 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-cliwithnpm
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 25starts DND mode for 25 minutesslack-dnd-cli --dnd stopends DND mode