SriMethan / BotLi-Heroku

Lichess Bot Heroku
GNU Affero General Public License v3.0
1 stars 3 forks source link
heroku lichess-bot

Overview

BotLi is a bot for Lichess. Strongly inspired by ShailChoksi/lichess-bot. It extends its features with a matchmaking mode where the bot automatically challenges other bots with similar ratings.

Not every function of the bot is extensively tested, a faulty or incomplete config.yml will lead to unexpected behavior. Other chess variants than Standard and Chess960 are untested. At least Python 3.10 is required.

Heroku

Chess Engines

Heroku Stack

How to install

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

CAUTION: Be careful with matchmaking mode, lichess will rate limit you if you let it run for too long!

Setup polyglot opening book

To use a polyglot opening book the name of the book and the path to the book must be entered at the end of the config in the section books.

Several books can be entered here. In the upper area eninge: polyglot: books only the name of the book must be entered. In addition, different books can be used for white, black and chess960. If no specific book is defined, the standard book is used.

Matchmaking mode

You can activate the matchmaking mode in your Dockerfile.

CAUTION: Be careful with matchmaking mode, lichess will rate limit you if you let it run for too long!

Acknowledgements

Thanks to the Lichess team, especially T. Alexander Lystad and Thibault Duplessis for working with the LeelaChessZero team to get this API up. Thanks to the Niklas Fiekas and his python-chess code which allows engine communication seamlessly. In addition, the idea of this bot is based on ShailChoksi/lichess-bot.

License

BotLi is licensed under the AGPLv3 (or any later version at your option). Check out the LICENSE file for the full text.