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
// by u/NeutronStarsAreHeavy for Revoke Article 50 Petition Tracker. | |
// Function to check time, so that the save data function executes at specified times. Triggered every minute (set-up in GSuite Developer Hub) | |
function checkTime() { | |
var now = new Date(); | |
var minute = now.getMinutes(); | |
if (minute == 00 || minute == 15 || minute == 30 || minute == 45) { | |
// execute saveData | |
saveData(); |