import { initImages, updateImages } from './downloader.mjs'; import { createVideo } from './video.mjs'; const IMAGE_COUNT = 12; initImages(IMAGE_COUNT).then(() => { console.log('Downloaded initial images successfully'); createVideo().then(() => { console.log('Generated video successfully'); }); }); setInterval(() => { updateImages(IMAGE_COUNT).then(() => { console.log('Updated images successfully'); createVideo().then(() => { console.log('Regenerated video successfully'); }); }); }, 5 * 60 * 1000);