Skip to content

Bots that are disabled or have tos violation aren't shown anymore #1103

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

AttackingOrDefending
Copy link
Member

Type of pull request:

  • Bug fix
  • Feature
  • Other

Description:

Disabled bots (i.e. account closed) and bots with tos violation aren't shown in the bot list anymore. The change was done here.

Related Issues:

None

Checklist:

  • I have read and followed the contribution guidelines.
  • I have added necessary documentation (if applicable).
  • The changes pass all existing tests.

Screenshots/logs (if applicable):

@MarkZH
Copy link
Collaborator

MarkZH commented May 4, 2025

Are these fields in the UserProfileType and PublicDataType still necessary? The tosViolation is field still sent, but it will now always be false, right?

tosViolation: bool

tosViolation: bool

And this can possibly be removed from the test:

"seenAt": 1669272254317, "title": "BOT", "tosViolation": True,

@AttackingOrDefending
Copy link
Member Author

They weren't needed in UserProfileType so they were removed (both tos violation and disabled). They are still present at PublicDataType and can be both true or false (so the line from the tests cannot be removed) it's just that these bots aren't shown in the /api/bot/online endpoint.

@MarkZH MarkZH merged commit d6d4ab4 into lichess-bot-devs:master May 5, 2025
23 checks passed
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