Closed FatFritz2 closed 1 year ago
What do you mean by 'installing' the bot?
You can find the engine binaries under lynx-chess/Lynx/releases. That's how you normally run the engine locally to play against other local engines.
What this repo does is generating a Docker image with those binaries and a specific version of lichess-bot-devs/lichess-bot (this one) whenever there's a new Lynx release.
So you can make Lynx play for your lichess BOT account by:
docker
and docker compose
.LICHESS_API_TOKEN
environment variable to a lichess BOT account token. Alternatively, a .env
file can be placed next to the other two files with the token inside (LICHESS_API_TOKEN="xxxxxxxxxxxxxx"
).And although you could relatively easily make something similar for Stockfish, you would need to first replicate what I do in docker-publish.yml but using Stockfish binaries to mix them with lichess-bot-devs/lichess-bot
in an image.
Once that's achieved, it'd be matter of 'just' changing the image:
part of the docker-compose.yml file.
I can't install docker and I guess its paid to run this so yea idk how :(
I'm afraid I'm not sure what you mean.
Docker and Docker engine are free to use. Docker Desktop for Windows, which I assume it's what you're referring to, is also free to use for individuals.
*Docker Desktop is free to use, as part of the Docker Personal subscription, for individuals, non-commercial open source developers, students and educators, and small businesses of less than 250 employees AND less than $10 million in revenue. Commercial use of Docker Desktop at a company of more than 250 employees OR more than $10 million in annual revenue requires a paid subscription (Pro, Team, or Business) to use Docker Desktop. While the effective date of these terms is August 31, 2021, there is a grace period until January 31, 2022 for those that require a paid subscription to use Docker Desktop.
(source: docker.com/pricing)
I'd recommend reading about it and following the instructions in https://docs.docker.com/
Oh hi, I have done installing Docker. What do I do now ?
docker-compose.yml
and lynx_bot-config.yml
as desired.env
file and add LICHESS_API_TOKEN="<your_lichess_bot_account_token"
there (more info in https://docs.docker.com/compose/environment-variables/set-environment-variables/)docker compose up
inside the folder to spin up the container, or docker compose up -d
to do it in the backgroundOh after I run "docker compose up" it appeared this :
error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.project%3Dlynx%22%3Atrue%7D%7D": open //./pipe/docker_engine: The system cannot find the file specified.
That generally means that docker itself is not running. If you're using Windows, try starting Docker Desktop
app first and wait for a few seconds. You can double check with docker run hello-world
that Docker is running correctly before jumping into anything else.
Oh One more question: Docker uses my resources right ? ( CPU and RAM )
Of course, and you can configure/limit it in in the docker-compose
file in this way.
Can you provide more informations to install this bot Can I change from Lynx to Stockfish ?