Skip to content

Instantly share code, notes, and snippets.

@esseti
Created January 14, 2016 22:08
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esseti/f7a919e3eb00127ac772 to your computer and use it in GitHub Desktop.
Save esseti/f7a919e3eb00127ac772 to your computer and use it in GitHub Desktop.
TimerApp script to set slack "Do Not Disturb" during a pomodor and rest when finished.
#replace xoxp-*****000 with your token from here https://api.slack.com/web#authentication
# for the start
do shell script "curl 'https://slack.com/api/dnd.setSnooze?token=xoxp-*****000&num_minutes=$duration'"
# for the end and interuption
do shell script "curl https://slack.com/api/dnd.endSnooze?token=xoxp-*****000"
@adisuryadi
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment