You need a Lichess bot token to run the application. See
https://github.com/lichess-bot-devs/lichess-bot/blob/master/README.md#lichess-oauth
for instructions. You can ignore the config.yaml
part.
Once you have a token upgrade to a bot account with
curl -d '' https://lichess.org/api/bot/account/upgrade -H "Authorization: Bearer <yourTokenHere>"
https://lichess.org/api#tag/Bot/operation/botAccountUpgrade
-
Install Deno (https://deno.land/[email protected]/getting_started/installation)
-
Copy
.env.template
to.env
and add your Lichess token -
Run the application with
deno task run
The app can also be compiled into an executable binary tirachess
with
deno task build
Specify the color of the chess bot with a command line argument e.g.
deno task run -c b
. Default value is white.
The app automatically fetches active games from Lichess which are associated with the bot account.
To play against the bot or to use the bot against any of the bots available on Lichess. First start the game on Lichess and then simply run the application.
Note that automatically accepting challenges is not implemented so you need to manually start the game on Lichess.
Run the app with deno task run
Run tests with deno task test
and benchmarks with deno task bench
Check test coverage with deno task cov
Lint and format code with deno lint
and deno fmt