Git Product home page Git Product logo

Comments (2)

crsleeth avatar crsleeth commented on June 30, 2024

I have a workaround for automated batch claims.

Using a headless Ubuntu Server 18.04 VM I would run into X display issues when the accounts would need to be manually logged into.

So instead I setup a Lubuntu 18.04 VM with a display. It is set to auto log in on launch using the instructions here: https://askubuntu.com/questions/848110/auto-login-lxde

It has a weekly crontab that looks like this: export DISPLAY=:0 && /bin/bash /home/user/epicgames-freebies-claimer/epicgames.bash

The bash scrip it runs looks like this:

echo "-----" >> /home/user/epicgames-freebies-claimer/epicgames.log
echo "$(date)" >> /home/user/epicgames-freebies-claimer/epicgames.log
node /home/user/epicgames-freebies-claimer/gimme_free_epic_shit.js EMAIL1 PASSWORD1 >> /home/user/epicgames-freebies-claimer/epicgames.log
node /home/user/epicgames-freebies-claimer/gimme_free_epic_shit.js EMAIL2 PASSWORD2 >> /home/user/epicgames-freebies-claimer/epicgames.log

My rememberLastSession is still set to true

Log file looks like this:

-----
Tue Apr 14 04:12:01 EDT 2020
Failed to login as EMAIL1, please attempt manually.
Logged in as ACCOUNT1
Close to the Sun was already claimed for this account
Sherlock Holmes Crimes and Punishments was already claimed for this account
Lego Batman Trilogy was already claimed for this account
Logged out of Epic Games
Failed to login as EMAIL2, please attempt manually.
Logged in as ACCOUNT2
Close to the Sun was already claimed for this account
Sherlock Holmes Crimes and Punishments was already claimed for this account
Lego Batman Trilogy was already claimed for this account
Logged out of Epic Games

from epicgames-freebies-claimer.

MusTangLee avatar MusTangLee commented on June 30, 2024

I have a workaround for automated batch claims.

Using a headless Ubuntu Server 18.04 VM I would run into X display issues when the accounts would need to be manually logged into.

So instead I setup a Lubuntu 18.04 VM with a display. It is set to auto log in on launch using the instructions here: https://askubuntu.com/questions/848110/auto-login-lxde

It has a weekly crontab that looks like this: export DISPLAY=:0 && /bin/bash /home/user/epicgames-freebies-claimer/epicgames.bash

The bash scrip it runs looks like this:

echo "-----" >> /home/user/epicgames-freebies-claimer/epicgames.log
echo "$(date)" >> /home/user/epicgames-freebies-claimer/epicgames.log
node /home/user/epicgames-freebies-claimer/gimme_free_epic_shit.js EMAIL1 PASSWORD1 >> /home/user/epicgames-freebies-claimer/epicgames.log
node /home/user/epicgames-freebies-claimer/gimme_free_epic_shit.js EMAIL2 PASSWORD2 >> /home/user/epicgames-freebies-claimer/epicgames.log

My rememberLastSession is still set to true

Log file looks like this:

-----
Tue Apr 14 04:12:01 EDT 2020
Failed to login as EMAIL1, please attempt manually.
Logged in as ACCOUNT1
Close to the Sun was already claimed for this account
Sherlock Holmes Crimes and Punishments was already claimed for this account
Lego Batman Trilogy was already claimed for this account
Logged out of Epic Games
Failed to login as EMAIL2, please attempt manually.
Logged in as ACCOUNT2
Close to the Sun was already claimed for this account
Sherlock Holmes Crimes and Punishments was already claimed for this account
Lego Batman Trilogy was already claimed for this account
Logged out of Epic Games

Are you using a dedicated server or home pc?
Sadly, I don't have a server readily available to run the VM and cba running a VM once a week on home pc.
Could probably automate running the VM on my home Windows pc with VBoxVmService or something similar... Honestly at this point it's more alluring just fixing the rememberLastSession hardcoded issue.

Keeping your implementation in mind when I get a hold of a server. :)
Thanks!

You could probably copy your implementation of weekly automated batch claims to a standalone git gist and get linked to on the README.md.
Not many people will come across this here and it's quite elegant.

from epicgames-freebies-claimer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.