@@ -136,6 +136,7 @@ def do_correspondence_ping(control_queue: CONTROL_QUEUE_TYPE, period: datetime.t
136136 """
137137 Tell the engine to check the correspondence games.
138138
139+ :param control_queue: Queue to put events in.
139140 :param period: How many seconds to wait before sending a correspondence ping.
140141 """
141142 while not stop .terminated :
@@ -167,7 +168,7 @@ def logging_configurer(level: int, filename: str | None, disable_auto_logs: bool
167168
168169 :param level: The logging level. Either `logging.INFO` or `logging.DEBUG`.
169170 :param filename: The filename to write the logs to. If it is `None` then the logs aren't written to a file.
170- :param auto_log_filename: The filename for the automatic logger. If it is `None` then the logs aren't written to a file .
171+ :param disable_auto_logs: Whether to disable automatic logging .
171172 """
172173 console_handler = RichHandler ()
173174 console_formatter = logging .Formatter ("%(message)s" )
@@ -252,7 +253,7 @@ def start(li: lichess.Lichess, user_profile: UserProfileType, config: Configurat
252253 :param config: The config that the bot will use.
253254 :param logging_level: The logging level. Either `logging.INFO` or `logging.DEBUG`.
254255 :param log_filename: The filename to write the logs to. If it is `None` then the logs aren't written to a file.
255- :param auto_log_filename: The filename for the automatic logger. If it is `None` then the logs aren't written to a file .
256+ :param disable_auto_logging: Whether to disable automatic logging .
256257 :param one_game: Whether the bot should play only one game. Only used in `test_bot/test_bot.py` to test lichess-bot.
257258 """
258259 logger .info (f"You're now connected to { config .url } and awaiting challenges." )
@@ -337,6 +338,7 @@ def lichess_bot_main(li: lichess.Lichess,
337338 :param control_queue: The queue containing all the events.
338339 :param correspondence_queue: The queue containing the correspondence games.
339340 :param logging_queue: The logging queue. Used by `logging_listener_proc`.
341+ :param pgn_queue: The queue containing the PGN games.
340342 :param one_game: Whether the bot should play only one game. Only used in `test_bot/test_bot.py` to test lichess-bot.
341343 """
342344 max_games = config .challenge .concurrency
@@ -661,6 +663,7 @@ def play_game(li: lichess.Lichess,
661663 :param challenge_queue: The queue containing the challenges.
662664 :param correspondence_queue: The queue containing the correspondence games.
663665 :param logging_queue: The logging queue. Used by `logging_listener_proc`.
666+ :param pgn_queue: The queue containing the PGN games.
664667 """
665668 thread_logging_configurer (logging_queue )
666669 logger = logging .getLogger (__name__ )
@@ -766,7 +769,7 @@ def play_game(li: lichess.Lichess,
766769
767770
768771def read_takeback_record (game : model .Game ) -> int :
769- """Read the number of move takeback requests accepeted in a game."""
772+ """Read the number of move takeback requests accepted in a game."""
770773 try :
771774 with open (takeback_record_file_name (game .id )) as takeback_file :
772775 return int (takeback_file .read ())
@@ -775,7 +778,7 @@ def read_takeback_record(game: model.Game) -> int:
775778
776779
777780def record_takeback (game : model .Game , accepted_count : int ) -> None :
778- """Record the number of move takeback requests accepeted in a game."""
781+ """Record the number of move takeback requests accepted in a game."""
779782 with open (takeback_record_file_name (game .id ), "w" ) as takeback_file :
780783 takeback_file .write (str (accepted_count ))
781784
0 commit comments