Thibault Duplessis commited on
Commit
5cb356d
·
1 Parent(s): 4fdf090

improve readme

Browse files
Files changed (1) hide show
  1. README.md +21 -0
README.md CHANGED
@@ -66,6 +66,27 @@ pip install -r requirements.txt
66
  - To start: `python lichess-bot.py`
67
 
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  # Acknowledgements
70
  Thanks to the Lichess team, especially T. Alexander Lystad and Thibault Duplessis for working with the LeelaChessZero
71
  team to get this API up. Thanks to the Niklas Fiekas and his [python-chess](https://github.com/niklasf/python-chess) code which allows engine communication seamlessly.
 
66
  - To start: `python lichess-bot.py`
67
 
68
 
69
+ ## Tips & Tricks
70
+ - You can specify a different config file with the `--config` argument.
71
+ - Here's an example systemd service definition:
72
+ ```
73
+ [Unit]
74
+ Description=lichess-bot
75
+ After=network-online.target
76
+ Wants=network-online.target
77
+
78
+ [Service]
79
+ Environment="PYTHONUNBUFFERED=1"
80
+ ExecStart=/usr/bin/python3 /home/thibault/lichess-bot/lichess-bot.py
81
+ WorkingDirectory=/home/thibault/lichess-bot/
82
+ User=thibault
83
+ Group=thibault
84
+ Restart=always
85
+
86
+ [Install]
87
+ WantedBy=multi-user.target
88
+ ```
89
+
90
  # Acknowledgements
91
  Thanks to the Lichess team, especially T. Alexander Lystad and Thibault Duplessis for working with the LeelaChessZero
92
  team to get this API up. Thanks to the Niklas Fiekas and his [python-chess](https://github.com/niklasf/python-chess) code which allows engine communication seamlessly.