qpwoeirut / lichess-openings-bot

A Lichess bot plays from the Lichess opening explorer and then uses Fairy-Stockfish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lichess-openings-bot

A bot that plays based on the Lichess openings explorer and then uses Fairy-Stockfish. For casual games, users can tell the bot to play the openings of a specific Lichess player. Supports all Lichess variants.

TODO

  • Figure out how to let user start game w/o waiting for 10s
  • Make sure the bot doesn't flag so easily

Setup

Copy config.yml.default to config.yml and add a Lichess OAuth token to config.yml.

Build Fairy-Stockfish (or download a prebuilt binary), name it fairy-stockfish, and put it in the ./engines/ directory.

Install Python dependencies using pip or an IDE like PyCharm.

Run python3 lichess-bot.py. Add -u if you need to upgrade your account to a BOT account.

Acknowledgements

This bot is forked from the lichess-bot repository.

A new function called chat_command was added to EngineWrapper in engine_wrapper.py to facilitate chat command responses.

A 8-second time.sleep call was added to lichess-bot.py to give the user time to update bot settings.

.gitignore, config.yml.default, conversation.py, README.md, and strategies.py are the only other edited files.

About

A Lichess bot plays from the Lichess opening explorer and then uses Fairy-Stockfish

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%