Coder Social home page Coder Social logo

lichess_team_handler's Introduction

Lichess team handler

This program handles requests to join your lichess team.

Building

General build:

cargo build --release

If you want more logs while running:

cargo build --release --features full_info

Authorization token creation

This program needs authorization token, created by an admin or manager of your lichess team.

Prefilled creation

Use this link to open lichess auth token creation page with prefilled form.

Manual creation

To create auth token, go to Preferences -> API token access -> New access token

You token will need these rights:

  1. Read private team information
  2. Manage teams you lead: send PMs, kick members

Although you can add other rights too, I highly recommend to limit yourself to those two only.

You can find more info on lichess auth tokens here

Running

This program needs config.json file with the next fields:

  1. blacklistFile -- path to the blacklist file
  2. team -- your team id. You can find it in your club url address (https://lichess.org/team/{team-id})
  3. authorizationToken -- your authorization token. How to create authorization token

If you need an example, see config-example.json

Blacklist file

Blacklist file -- file with one user per line, whose join request you want to decline.

Just fill it with one user non-grata per line (see blacklist-example file)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.