Skip to content

Instantly share code, notes, and snippets.

@tomrandle
Last active October 17, 2016 13:52
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 tomrandle/40b8477ecab3e3a52d5e17247fd517da to your computer and use it in GitHub Desktop.
Save tomrandle/40b8477ecab3e3a52d5e17247fd517da to your computer and use it in GitHub Desktop.
openlunch
function openLunch() {
var restaurant = sheet.getRange("B1").getValues()[0][0];
var deadline = sheet.getRange("B2").getValues()[0][0];
triggerSlackRequest("main", "@london: FRIDAY LUNCH: *"+ restaurant +"*. Please order by *"+ deadline +"*. Cheers.\n"+ sheetURL);
createTimeTriggers(2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment