-
-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Epic game's weekly free games purchasing bot without spending a single penny.
Run it on heroku (Recommend) or somewhere
if you wanna run it locally or some other place lemme know in the discussion tab.
- Configuration
-
Heroku
- Create an account
- Setup Heroku You need Git installed
- Create an app
- Add Buildpacks
- Add Plug-in
- Deploy
- Finally
To configure the bot open config.json
{
"gmail": {
"email": "",
"app_password": ""
},
Your Gmail address eg: johndoe@gmail.com | |
---|---|
app_password | See https://devanswers.co/create-application-specific-password-gmail/ |
"facebook": {
"email": "",
"password": ""
},
Your email used to login to facebook | |
---|---|
password | Your facebook password |
"db": {
"host": "",
"database": "",
"user": "",
"port": 5432,
"password": ""
},
Use sh $ heroku pg:credentials:url
to get credentials
"cronjob": {
"yourappname": "",
"email": "",
"password": ""
},
Make an account at Cron-Job.org
Yourappname | your app name that you created at heroku |
---|---|
cron-job.org email | |
password | cron-job.org password |
"web": {
"username": "root",
"password": "toor"
}
}
Web ui credentials it's your choice.
Setup Heroku You need Git installed
Continue after $ heroku login
$ heroku create yourappname
Chrome Driver | https://github.com/heroku/heroku-buildpack-chromedriver |
---|---|
Chrome Binary | https://github.com/heroku/heroku-buildpack-google-chrome |
$ heroku buildpacks:add --index 1 heroku/python
$ heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-chromedriver
$ heroku buildpacks:add --index 3 https://github.com/heroku/heroku-buildpack-google-chrome
heroku-postgresql : https://elements.heroku.com/addons/heroku-postgresql
Get to the link and use install button
or $ heroku addons:create heroku-postgresql:hobby-dev
$ cd epic_store_bot
$ git init
$ git add -A
$ git commit -am "first commit"
$ heroku git:remote -a yourappname
$ git push heroku master
Go to https://yourappname.herokuapp.com
Here you can view purchased items & configure the schedule
Login using the credentials that you gave under Configuration
To apply the changes to your app you've to reboot it.
$ heroku ps:scale clock=0 -a yourappname # off
$ heroku ps:scale clock=1 -a yourappname # on
$ heroku logs -t -a yourappname
gunicorn # For heroku
requests
flask
selenium
apscheduler
MIT