Spaces:
Running
Running
Download main.py from BlueMoonBot/bluemoonbot_Lichess: direct link, hf CLI and curl.
- Browser
- Download file 238 Bytes
-
https://huggingface.co/spaces/BlueMoonBot/bluemoonbot_Lichess/resolve/main/main.py
- Command line
-
hf download hf://spaces/BlueMoonBot/bluemoonbot_Lichess/main.py
-
curl -L -o main.py https://huggingface.co/spaces/BlueMoonBot/bluemoonbot_Lichess/resolve/main/main.py
238 Bytes
| import os | |
| import subprocess | |
| print("Starting Lichess Bot...") | |
| # This executes the actual lichess-bot script in the background | |
| # Make sure your config.yml file is also uploaded to Hugging Face! | |
| subprocess.run(["python", "lichess-bot.py"]) |