Skip to content

Instantly share code, notes, and snippets.

@beenker
Created February 12, 2018 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beenker/dfa31708fcba2da19f3ea00a57e4619f to your computer and use it in GitHub Desktop.
Save beenker/dfa31708fcba2da19f3ea00a57e4619f to your computer and use it in GitHub Desktop.
Config,js file for setting the Slack status based on Wi-Fi
module.exports = {
slackToken: "xoxp-.....", //Paste your own slack token here
statusByWiFiName: {
"OFFICE": { //wifi SSID
"status_text": "In the office",
"status_emoji": ":office:"
},
"HOME": {
"status_text": "Working from home",
"status_emoji": ":home:"
},
"HOTSPOT": {
"status_text": "Working outside",
"status_emoji": ":outside:"
}
},
//updateInterval: 1000 // every second
//updateInterval: 5000 // every 5 seconds
//updateInterval: 300000 // every 5 minutes
//updateInterval: 600000 // every 10 minutes
updateInterval: 1800000 // every 30 minutes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment