lichessbot 0.1.10

Lichess bot. Under construction.
Documentation

lichessbot

documentation Crates.io Crates.io (recent)

Lichess bot. Under construction.

Usage

use dotenv::dotenv;

use lichessbot::lichessbot::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>>{
	dotenv().ok();

	let mut bot = LichessBot::new();

	bot.stream().await
}

Logging

export RUST_LOG=info
# or 
export RUST_LOG=debug

Config

Set environment as follows:

Token

RUST_BOT_TOKEN={lichess API token with bot scopes}

Bot name

RUST_BOT_NAME={bot lichess username}

example

RUST_BOT_NAME=chesshyperbot

Engine name

RUST_BOT_ENGINE_NAME={engine executable name}

examples

Linux RUST_BOT_ENGINE_NAME=./stockfish12

Windows RUST_BOT_ENGINE_NAME=stockfish12.exe