Doezer / AutoChronoGG

A Python script to automatically get the daily coins on Chrono.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoChronoGG

A Python script to automatically get the daily coins on Chrono.gg

Format:

The format is pretty straightforward, the program only needs your Authorization Token in order to have access to your Chrono.gg session.

Usage: ./chronogg.py "<Authorization Token (starts with JWT, first execution only)>"

In order to obtain your Authorization Token, you must follow these steps:

  • Head to https://chrono.gg/ and login
  • Right-click anywhere -> Inspect Element -> Go to the network tab -> Filter by XHR
  • Keep the network tab open and refresh the page
  • Some requests will appear, click "account" and copy the Authorization header under "Request Headers". It should start with "JWT", followed by a train of characters. Make sure you copy all of it!

You only need to do this once because AutoChronoGG will remember your authorization token (if valid).

Optional: Additional features - E-mail on expired/invalid token

  • Copy .config.example to .config
  • Enable by setting email.enabled to true in .config.

Optional: Crontab

This script is meant to be run once per day, so here goes a crontab example for the lazy:

0 17 * * * root cd /usr/local/bin/ && ./chronogg.py

About

A Python script to automatically get the daily coins on Chrono.gg

License:GNU General Public License v3.0


Languages

Language:Python 100.0%