This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Home
5H4D0W edited this page Dec 20, 2020
·
2 revisions
Epic game's weekly free games purchasing bot
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: [email protected] | |
---|---|
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
"web": {
"username": "root",
"password": "toor"
}
}
Web ui credentials it's your choice.
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 change 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