Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to load engine on startup #811

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lichess-bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,13 @@ def start_lichess_bot() -> None:
auto_log_filename = "./lichess_bot_auto_logs/recent.log"
logging_configurer(logging_level, args.logfile, auto_log_filename, True)
logger.info(intro(), extra={"highlighter": None})

CONFIG = load_config(args.config or "./config.yml")
logger.info("Checking engine configuration ...")
with engine_wrapper.create_engine(CONFIG):
pass
logger.info("Engine configuration OK")

max_retries = CONFIG.engine.online_moves.max_retries
check_python_version()
li = lichess.Lichess(CONFIG.token, CONFIG.url, __version__, logging_level, max_retries)
Expand Down
Loading