lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.65k stars 2.28k forks source link

Online titled returns suspicious status for BOTs #4874

Closed serversideapps closed 5 years ago

serversideapps commented 5 years ago

For human players it works like charm ( also much faster than it was before ).

However it misses a lot of online bots. I checked that with using the batch query ( which lets you query 50 players' status at once ) querying all bots' status. The two queries return different results.

It may be that bot online status is registered differently if using lichess-bot than using the ui? Just guessing.

serversideapps commented 5 years ago

Yes, I'm almost certain that only logins through the ui count. I made a test. I polled the online bot list and my bot was missing ( despite being online through the bot api ). Then I logged into the ui with my bot. Polling the online bot list with my bot logged into the ui returned my bot being online. Then I logged out, but the poll still returned the bot being online ( I think because the cache has a short term memory ). So the net result is that only bots that have logged into the ui recently are reported as being online.

ddugovic commented 5 years ago

How do I test/verify this?