Skip to content

Instantly share code, notes, and snippets.

@danielgospodinow
Created July 13, 2019 14:29
Show Gist options
  • Save danielgospodinow/7e8079a128536874b4cc589fc13b01c2 to your computer and use it in GitHub Desktop.
Save danielgospodinow/7e8079a128536874b4cc589fc13b01c2 to your computer and use it in GitHub Desktop.
Screentopia - repeat process
schedule.scheduleJob("0 * * * *", async () => {
await ensureImagesFolder(imageDirectory);
await cleanupImages(imageDirectory, imageDirectoryCapacity);
await updateBackground(imageResolution, imageCategories, imageDirectory);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment