An open API service indexing awesome lists of open source software.

https://github.com/ivangabriele/world-classicals-bot


https://github.com/ivangabriele/world-classicals-bot

chess lichess

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# World Classicals Bot

A simple bot utilizing Lichess API to auto-generate tournaments for
[World Classicals Team](https://lichess.org/team/world-classicals).

## Setup

### macOS

We can use [launchd](https://www.manpagez.com/man/8/launchd/) to schedule the bot.

First, create a new `plist` file within `~/Library/LaunchAgents` directory:

**`~/Library/LaunchAgents/com.world-classicals-bot.agent.plist`**

```xml


Label
com.world-classicals-bot.agent.plist

RunAtLoad

StartCalendarInterval

Minute
0

StandardErrorPath
[WORLD_CLASSICAL_BOT_PATH]/stderr.log

StandardOutPath
[WORLD_CLASSICAL_BOT_PATH]/stdout.log

EnvironmentVariables

PATH

WorkingDirectory
[WORLD_CLASSICAL_BOT_PATH]

ProgramArguments

/usr/local/bin/node
src/index.js

```

> **⚠️ Important**
> Don't use `~` in your `WORLD_CLASSICAL_BOT_PATH` but the full absolute path.

Then let's load this file into `launchd`:

```sh
launchctl load ~/Library/LaunchAgents/com.world-classicals-bot.agent.plist
```

We can unload this agent later on via a simple `launchctl unload …`.