- Blind mode tutorial
lichess.org
Donate

Bot

How can I create a bot. I really want to make one

How can I create a bot. I really want to make one

"Mac/Linux:
NOTE: Only Python 3 is supported!
Download the repo into lichess-bot directory
Navigate to the directory in cmd/Terminal: cd lichess-bot
Install virtualenv: pip install virtualenv
Setup virtualenv:
virtualenv .venv -p python3 #if this fails you probably need to add Python3 to your PATH
source .venv/bin/activate
pip install -r requirements.txt
Copy config.yml.default to config.yml
Edit the variants: supported_variants and time controls: supported_tc from the config.yml as necessary

Windows:
Here is a video on how to install the bot: (https://youtu.be/w-aJFk00POQ). Or you may proceed to the next steps.
NOTE: Only Python 3 is supported!
If you don't have Python, you may download it here: (https://www.python.org/downloads/). When installing it, enable "add Python to PATH", then go to custom installation (this may be not necessary, but on some computers it won't work otherwise) and enable all options (especially "install for all users"), except the last . It's better to install Python in a path without spaces, like "C:\Python".
To type commands it's better to use PowerShell. Go to Start menu and type "PowerShell" (you may use cmd too, but sometimes it may not work).
Then you may need to upgrade pip. Execute "python -m pip install --upgrade pip" in PowerShell.
Download the repo into lichess-bot directory.
Navigate to the directory in PowerShell: cd [folder's adress] (like "cd C:\chess\lichess-bot").
Install virtualenv: pip install virtualenv.
Setup virtualenv:
virtualenv .venv -p python (if this fails you probably need to add Python to your PATH)
./.venv/Scripts/activate (.\.venv\Scripts\activate should work in cmd in administator mode) (This may not work on Windows, and in this case you need to execute "Set-ExecutionPolicy RemoteSigned" first and choose "Y" there [you may need to run Powershell as administrator]. After you executed the script, change execution policy back with "Set-ExecutionPolicy Restricted" and pressing "Y")
pip install -r requirements.txt
Copy config.yml.default to config.yml
Edit the variants: supported_variants and time controls: supported_tc from the config.yml as necessary (use # to disable certain ones)

"Mac/Linux: NOTE: Only Python 3 is supported! Download the repo into lichess-bot directory Navigate to the directory in cmd/Terminal: cd lichess-bot Install virtualenv: pip install virtualenv Setup virtualenv: virtualenv .venv -p python3 #if this fails you probably need to add Python3 to your PATH source .venv/bin/activate pip install -r requirements.txt Copy config.yml.default to config.yml Edit the variants: supported_variants and time controls: supported_tc from the config.yml as necessary Windows: Here is a video on how to install the bot: (https://youtu.be/w-aJFk00POQ). Or you may proceed to the next steps. NOTE: Only Python 3 is supported! If you don't have Python, you may download it here: (https://www.python.org/downloads/). When installing it, enable "add Python to PATH", then go to custom installation (this may be not necessary, but on some computers it won't work otherwise) and enable all options (especially "install for all users"), except the last . It's better to install Python in a path without spaces, like "C:\Python". To type commands it's better to use PowerShell. Go to Start menu and type "PowerShell" (you may use cmd too, but sometimes it may not work). Then you may need to upgrade pip. Execute "python -m pip install --upgrade pip" in PowerShell. Download the repo into lichess-bot directory. Navigate to the directory in PowerShell: cd [folder's adress] (like "cd C:\chess\lichess-bot"). Install virtualenv: pip install virtualenv. Setup virtualenv: virtualenv .venv -p python (if this fails you probably need to add Python to your PATH) ./.venv/Scripts/activate (.\.venv\Scripts\activate should work in cmd in administator mode) (This may not work on Windows, and in this case you need to execute "Set-ExecutionPolicy RemoteSigned" first and choose "Y" there [you may need to run Powershell as administrator]. After you executed the script, change execution policy back with "Set-ExecutionPolicy Restricted" and pressing "Y") pip install -r requirements.txt Copy config.yml.default to config.yml Edit the variants: supported_variants and time controls: supported_tc from the config.yml as necessary (use # to disable certain ones)

learn to code, then come back. thats all i can say

learn to code, then come back. thats all i can say

Well coding is not needed. Just explore everything and don't hesitate to run all those commands and stuff. I learnt how to do just like that.

Well coding is not needed. Just explore everything and don't hesitate to run all those commands and stuff. I learnt how to do just like that.

This topic has been archived and can no longer be replied to.