Auto refresh online blocklist#1142
Merged
AttackingOrDefending merged 5 commits intolichess-bot-devs:masterfrom Dec 15, 2025
Merged
Auto refresh online blocklist#1142AttackingOrDefending merged 5 commits intolichess-bot-devs:masterfrom
AttackingOrDefending merged 5 commits intolichess-bot-devs:masterfrom
Conversation
3e7971f to
f91d7b2
Compare
AttackingOrDefending
approved these changes
Oct 9, 2025
MarkZH
reviewed
Oct 10, 2025
MarkZH
reviewed
Oct 10, 2025
MarkZH
reviewed
Oct 10, 2025
f91d7b2 to
75713ec
Compare
Member
|
@MarkZH Is this good now? |
MarkZH
reviewed
Dec 15, 2025
00d5cf4 to
1d117c0
Compare
MarkZH
approved these changes
Dec 15, 2025
Collaborator
|
@xu-shawn Be sure to keep an eye on your debug logs when using online block lists. If you start seeing 429 status codes (too many requests) when refreshing, submit another PR to add delays of at least a minute between polling the same url. |
AttackingOrDefending
approved these changes
Dec 15, 2025
1ee9f00
into
lichess-bot-devs:master
23 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of pull request:
Description:
The online blocklist introduced in #1104 requires manually refreshing the bot to refresh the blocklist, which can be tedious for long running bots. This PR refactors the online blocklist to a separate class and refresh every time before it is used.
Checklist: