OS Setup: Linux (any), Postfix as a forwarder
Depends on: nodejs + AuroPick/epic-free-games
It's best to run cron once every 2-3 days, so as not to miss the release time window. The script compares with the last run to avoid sending duplicate emails.
mkdir -p /root/bin/epic
cd /root/bin/epic
wget https://gist.githubusercontent.com/c0m4r/76c8497c34a093dfc63fbf02537c327d/raw/epic.cjs
wget https://gist.githubusercontent.com/c0m4r/76c8497c34a093dfc63fbf02537c327d/raw/package.json
npm update # or npm install epic-free-games nodemailer fs eslint
0 0 */3 * * /usr/bin/node /root/bin/epic/epic.cjs > /root/bin/epic/epic.log 2>&1
wget https://gist.githubusercontent.com/c0m4r/76c8497c34a093dfc63fbf02537c327d/raw/bb9cf89ebfcf49d3997ce5c6702b0a6b0d13c212/eslint.config.js
npx eslint epic.cjs
npm install epic-free-games nodemailer
mkdir -p /root/bin/epic
cd /root/bin/epic
wget https://gist.githubusercontent.com/c0m4r/76c8497c34a093dfc63fbf02537c327d/raw/epic.js
wget https://gist.githubusercontent.com/c0m4r/76c8497c34a093dfc63fbf02537c327d/raw/epic.sh
chmod o+x epic.sh
0 0 */3 * * /root/bin/epic/epic.sh > /root/bin/epic/epic.log 2>&1