Skip to content

Commit 14d4f0d

Browse files
committed
Get max number of online bots
1 parent 51e52c2 commit 14d4f0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ async def get_game_stream(self, game_id: str, queue: asyncio.Queue[dict[str, Any
242242

243243
@retry(**JSON_RETRY_CONDITIONS)
244244
async def get_online_bots(self) -> list[dict[str, Any]]:
245-
async with self.lichess_session.get("/api/bot/online", timeout=STREAM_TIMEOUT) as response:
245+
async with self.lichess_session.get("/api/bot/online", params={"nb": 512}, timeout=STREAM_TIMEOUT) as response:
246246
return [json.loads(line) async for line in response.content if line.strip()]
247247

248248
async def get_opening_explorer(

0 commit comments

Comments
 (0)