diff --git a/epic-claimer-new.js b/epic-claimer-new.js index b9943fd..349a640 100644 --- a/epic-claimer-new.js +++ b/epic-claimer-new.js @@ -20,6 +20,10 @@ const URL_CLAIM = 'https://store.epicgames.com/en-US/free-games'; const COOKIES_PATH = path.resolve(cfg.dir.browser, 'epic-cookies.json'); const BEARER_TOKEN_NAME = 'EPIC_BEARER_TOKEN'; +// Screenshot Helper Function +const screenshot = (...a) => path.resolve(cfg.dir.screenshots, 'epic-games', ...a); + + // Fetch Free Games from API const fetchFreeGamesAPI = async () => { const resp = await axios.get('https://store-site-backend-static-ipv4.ak.epicgames.com/freeGamesPromotions', {