-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bot cannot abort or resign after another bot challenged it and left #15318
Comments
The same is happening for my bot, against the same opponent: https://lichess.org/jOFDwY6j The lichess-bot say 400 Bad Request when trying to abort the game: https://lichess.org/api/bot/game/jOFDwY6j/abort If I log in to my bot's Lichess account and try to resign the game via the UI, the orange 'resign' flag is unresponsive. |
Looks like the offending bot has 25 such open games |
It is possible to set rules for the game when sending the challenge, If the challenge contains the rule So one way to avoid the problem, And possibly it doesn't make sense for BOTs to play games with the rule Example of incoming challenge with noAbort rule{
"type": "challenge",
"challenge": {
"id": "CmcSdfd6",
"url": "http://localhost:8080/CmcSdfd6",
"status": "created",
"challenger": {
"id": "ana",
"name": "Ana",
"rating": 1739,
"title": null,
"online": true,
"lag": 4
},
"destUser": {
"id": "bot0",
"name": "Bot0",
"rating": 1500,
"title": "BOT",
"provisional": true,
"online": true
},
"variant": {
"key": "standard",
"name": "Standard",
"short": "Std"
},
"rated": false,
"speed": "rapid",
"timeControl": {
"type": "clock",
"limit": 600,
"increment": 5,
"show": "10+5"
},
"color": "random",
"finalColor": "white",
"perf": {
"icon": "",
"name": "Rapid"
},
"rules": [
"noAbort"
]
},
"compat": {
"bot": true,
"board": true
}
} |
Thanks @tors42 I thought about this as well. I saw that the main wrapper to make Lichess bots doesn't seem to pass Also it would be interesting to retrieve the game rules via the API for these stuck games, but I don't think there's a way? |
Cheers @tors42, I will look into that option in the future. Do you have an idea if there's any way to terminate this ongoing game? My bot is stuck now in a loop of trying to abort, and can't start any new games. Thanks, |
I don't know of any ways to terminate the game...
If you have implemented the Lichess client yourself, you could add some mechanism to ignore this specific game id or user, I.e not try to abort it and not try to connect to it to play it. If you are using some library, you could check if the library has support to ignore games by id or by user, or some other mechanism. It is allowed to have multiple ongoing games. |
This also happened to my bot. https://lichess.org/xrTxLW8i/black It would be extremely helpful if these games could somehow be aborted anyway. I think it's clear that this is harmful behaviour from the bot in question by starting many games like this and never playing a move. |
Avoids problems such as lichess-org/lila#15318
… been made yet This helps with lichess-org/lila#15318 even if such a game has already been started, simply put the opponent on the blacklist and the game will be ignored at the next start.
I think the best first step would be to ban https://lichess.org/@/HaBaGuBot. He's obviously doing it on purpose. |
Agreed, they have 80+ active games now, all of which are abandoned... |
Hmm now my original link is 404'ing and I have a thread back available, so I guess it takes care of itself after a while? Or someone intervened? |
I got a notification saying someone I reported was banned, so it seems someone at Lichess intervened! |
Nice, though I still see the bot having many games hanging still (though not with my bot). 🤷 |
Exact URL of where the bug happened
https://lichess.org/DJbIIQtieK1K
Steps to reproduce the bug
Another bot challenged mine and went offline.
What did you expect to happen?
Either the game aborts automatically, or I can manually abort it.
Using the bot's API key:
What happened instead?
Now the game is hanging and using up a thread.
Operating system
n/a
Browser and version (or alternate access method)
bot API
Additional information
No response
The text was updated successfully, but these errors were encountered: