Skip to content
/ liro Public

A Discord bot for lichess and Rosen related things

License

Notifications You must be signed in to change notification settings

teotwaki/liro

Repository files navigation

liro

Liro is a Discord bot that follows in the footsteps of Lichess-discord-bot, without necessarily aiming to replace it. The main pain point that this bot is trying to solve is automating the role assignment for denizens of the IM Rosen Discord server.

This project also aims to increase rating support to not only lichess accounts, but also chesscom.

Features

  • Application commands (/link, /rating, /unlink),
  • Prefix commands (ohnomy rating, oh no my account, etc),
  • Automatic role detection (heuristics-based),
  • Automatic role assignment based on ratings (only bullet, blitz, classical and rapid are monitored),
  • OAuth account verification for lichess,
  • Public dashboard.

Invite

Please note: Liro is still being developed heavily. We do not provide uptime guarantees, and things related to role management might break in the near future. In addition, you might have to re-invite the bot in the future to add/remove permissions due to the changes that Discord is making to permissions.

You can now invite Liro to join your discord!

Setup

You will need to create roles that Liro can use to hand out to people. Colours and ordering are up to you, however the roles need to be under the liro role in your server. Here is an example of how roles could be setup:

Screenshot of sample Discord rating role setup

Role format

The format of the roles must end with one of:

  • blitz
  • bullet
  • classical
  • rapid

Any other value is ignored. For the rating range, 3 formats are accepted:

  • U800 or U1000.
  • 900+ or 1800+.
  • 800-1099

Any 3 or 4 numerical digit value is valid. The bot doesn't understand the roles, it just applies basic rules to guess which role to apply. If you create crazy overlapping roles, you will get duplicate matches.