Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 4.62 KB

README.md

File metadata and controls

56 lines (39 loc) · 4.62 KB

MAINTAINERS

Python Docker

lichess-bot

  • A bridge between Lichess API and bots.
  • This bot is made with Python and it is running using Docker container and is concentrated on heroku.

How to Install on Heroku

  • Import or Fork this repository to your Github.
  • Open the config.yml file and insert your API access token in to token option and commit changes over here.
  • Install Heroku CLI and create a new app in Heroku.
    Do note that in certain operating systems Heroku CLI doesn't get added to path automatically. If that's the case you'll have to add heroku to your path manually.
  • Run this command in cmd or powershell heroku stack:set container -a appname, where appname is replaced with your Heroku app's name.
  • In heroku, in the Deploy tab click on Connect to GitHub and then click on search and select your fork/import of this repository.
  • Now scroll down and under Manual deploy, click on deploy with the master branch selected.

    Note: You could also Enable Automatic Deploys with the master branch selected if you would like each commit you make to get automatically and easily deployed onto your bot. It is your choice whether you'd like to Enable or Disable Automatic Deploys.
  • After deploying wait for about 5 minutes till the build finishes and then in the Resources tab in heroku turn worker dynos. If you do not see any option to enable any dynos, then you'll have to wait for about 5 minutes and then refresh your page on heroku.

You're now connected to lichess and awaiting challenges! Your bot is up and ready!

Bot Information

Engine:

Opening Books:

If you would like to run bot locally on PC, read the lichess-bot manual.

How to change the engine used?

Changing the engine to an engine of your preference is simple. Just follow the following steps:

  • Firstly, you have to remove the engine used. To do this you need to put # at the start of these lines 16 to 18 in the dockerfile (or you can delete those lines).

  • Then you need to download the binary of the chess engine you want to used and in your GitHub repository, Click on Add files and the click Upload files and upload the binary of the chess engine you have downloaded.

Note: Make sure you download a linux binary that is supported by heroku (by default Stockfish is used, but the default engine name is chess-engine).

How to use Stockfish dev

  • You can reset link in 20th line in Dockerfile to the Stockfish dev binary link from abrok.eu/stockfish (You can set this http://abrok.eu/stockfish/latest/linux/stockfish_x64_modern.zip link for latest Stockfish dev binary)

How to use Stockfish nnue of your own choice

Note: You need to use Linux x64 for modern computers binary for Heroku.

Acknowledgements

Credits to Kingnandi and ChessGreatPlayer. They helped to collaborate and make this repository it contains codes of them and it is the best lichess repository to run bot in lichess by heroku server and a modified version of ShailChoksi.