lichess-bot-devs / lichess-bot

A bridge between Lichess bots and chess engines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for takeback requests

fathzer opened this issue · comments

The problem:
Currently if we configure the bot account, in Lichess web site, to allow takeback offers, the opponent of the bot can request takeback. But he will never have any answer because the Bot doesn't listen for incoming events while thinking (see @MarkZH comment on issue #60)

The solution I'd like:
The bot should, at least, accept every takeback request it receives. We can also imagine allowing only a limited takeback count per game.

I've created a pull request to implement this. Let us know if it suits your purposes and if the limitations are acceptable.