Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AttackingOrDefending authored Jun 20, 2024
1 parent 9d7aec3 commit 8262992
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,10 @@ def validate_config(CONFIG: CONFIG_DICT_TYPE) -> None:
config_assert(online_section.get("move_quality") != "suggest" or not online_section.get("enabled"),
f"XBoard engines can't be used with `move_quality` set to `suggest` in {subsection}.")

config_assert(CONFIG["challenge"]["sort_by"] in ["best", "first"], "challenge.sort_by can be either `first` or `best`.")
config_assert(CONFIG["challenge"]["preference"] in ["none", "human", "bot"],
"challenge.preference should be `none`, `human`, or `bot`.")

pgn_directory = CONFIG["pgn_directory"]
in_docker = os.environ.get("LICHESS_BOT_DOCKER")
config_warn(not pgn_directory or not in_docker, "Games will be saved to '{}', please ensure this folder is in a mounted "
Expand Down

0 comments on commit 8262992

Please sign in to comment.