Skip to content

♟︎ Update a pinned gist to contain your Chess.com Blitz, Bullet, Rapid, Puzzles & Daily Ratings

License

Notifications You must be signed in to change notification settings

sciencepal/chess-com-box-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chess-com-box-py

♟︎ Update a pinned gist to contain your Chess.com Blitz, Bullet, Rapid, Puzzles & Daily Ratings

Update gist with Chess.com Ratings


📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists

🎒 Prep Work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  3. Copy the API token

🖥 Project Setup

  1. Fork this repo
  2. Go to your fork's Settings > Secrets > Add a new secret for each environment secret (below)

🤫 Environment Secrets

  • GH_TOKEN: The GitHub token generated above.

  • GIST_ID: The ID portion from your gist url:

    https://gist.github.com/sciencepal/ce5221fc5f3739d2c81ce7db99f17519.

    (Alternatively this can be put directly in .github/workflows/chesscom.yml as it is public anyway.)

  • CHESS_COM_USERNAME: Your chess.com username. (This can also be put directly in the yml)

🤓 Hacking

# setup
pipenv install --dev
# testing
pipenv run python chess_com_box.py test <gist-id> <github-token> <user>
# example
# pipenv run python chess_com_box.py test ce5221fc5f3739d2c81ce7db99f17519 cf9181618bf1618253d17161843f71a2bb161850 sciencepal

✨ Credits

This code was heavily inspired (with some code taken over) by @aksh1618's codestats-box-python.

About

♟︎ Update a pinned gist to contain your Chess.com Blitz, Bullet, Rapid, Puzzles & Daily Ratings

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages