Skip to content

Add bots.handle_draw_offers and bots.handle_takeback_offers#86

Merged
kraktus merged 4 commits intolichess-org:masterfrom
FriedrichtenHagen:add_bot_offers_endpoints
Dec 3, 2025
Merged

Add bots.handle_draw_offers and bots.handle_takeback_offers#86
kraktus merged 4 commits intolichess-org:masterfrom
FriedrichtenHagen:add_bot_offers_endpoints

Conversation

@FriedrichtenHagen
Copy link
Copy Markdown
Contributor

Checklist when adding a new endpoint
  • Added new endpoint to the README.md

  • Ensured that my endpoint name does not repeat the name of the client. Wrong: client.users.get_user(), Correct: client.users.get()

  • Typed the returned JSON using TypedDicts in berserk/types/, example
    I did not type the returned json since it is not typed in other bots endpoint methods. The response is quite minimal ({
    "ok": true
    }). I could add this (also for the other bot endpoints) if desirable.

  • Written tests for GET endpoints not requiring authentification. Documentation, example
    These endpoints require authentication.

  • Added the endpoint and your name to CHANGELOG.md in the To be released section (to be created if necessary)

@kraktus kraktus force-pushed the add_bot_offers_endpoints branch from d3fef51 to 469db70 Compare December 3, 2025 10:30
@kraktus kraktus force-pushed the add_bot_offers_endpoints branch from a8d4817 to 6136e03 Compare December 3, 2025 10:37
@kraktus kraktus merged commit 6f3eac1 into lichess-org:master Dec 3, 2025
30 checks passed
@kraktus
Copy link
Copy Markdown
Member

kraktus commented Dec 3, 2025

Thanks! Sorry for the almost year-long review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants