This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webhookUrl = 'https://hooks.slack.com/services/XXXXXXXXXX/XXXXXXXXXX/XXXXXXXXXX'; // Webhook URL | |
var calendarId = '[email protected]'; // Id of the calendar | |
var slackChannel = '#team-calendar'; // Name of Slack channel to post updates to | |
var threshold = 30; // Seconds to look back after "onEventUpdated" event was received | |
var messageSingle = 'There is *1 event*'; | |
var messageMultiple = 'There are *{events} events*'; | |
var messageCreated = 'A *new event* has been created:'; | |
function sendDailyEventsSummary() { | |
sendEventsSummary(1, "today") |