Lichess bot. Under construction.
```rust extern crate env_logger;
use dotenv::dotenv;
use lichessbot::lichessbot::*;
async fn main() -> Result<(), Box
let mut bot = LichessBot::new()
.uci_opt("Move Overhead", 500)
.uci_opt("Threads", 4)
.uci_opt("Hash", 128)
.uci_opt("Contempt", -25)
.enable_classical(false)
.enable_rapid(false)
.disable_blitz(false)
.enable_ultrabullet(false)
.enable_casual(true)
.disable_rated(false)
;
bot.stream().await
}
```
```bash export RUST_LOG=info
export RUST_LOG=debug ```
Set environment as follows:
RUST_BOT_TOKEN={lichess API token with bot scopes}
RUST_BOT_NAME={bot lichess username}
example
RUST_BOT_NAME=chesshyperbot
RUST_BOT_ENGINE_NAME={engine executable name}
examples
Linux RUST_BOT_ENGINE_NAME=./stockfish12
Windows RUST_BOT_ENGINE_NAME=stockfish12.exe
If no engine name is provided, random moves will be played.