https://github.com/ivangabriele/world-classicals-bot
https://github.com/ivangabriele/world-classicals-bot
chess lichess
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ivangabriele/world-classicals-bot
- Owner: ivangabriele
- License: other
- Created: 2021-07-15T11:02:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-19T05:28:07.000Z (about 4 years ago)
- Last Synced: 2025-02-07T12:17:50.458Z (8 months ago)
- Topics: chess, lichess
- Language: JavaScript
- Homepage: https://lichess.org/team/world-classicals
- Size: 578 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.plistRunAtLoad
StartCalendarInterval
Minute
0
StandardErrorPath
[WORLD_CLASSICAL_BOT_PATH]/stderr.logStandardOutPath
[WORLD_CLASSICAL_BOT_PATH]/stdout.logEnvironmentVariables
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 …`.