Spaces:
Running
Running
Create main.py
Browse files
main.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import subprocess
|
| 3 |
+
|
| 4 |
+
print("Starting Lichess Bot...")
|
| 5 |
+
|
| 6 |
+
# This executes the actual lichess-bot script in the background
|
| 7 |
+
# Make sure your config.yml file is also uploaded to Hugging Face!
|
| 8 |
+
subprocess.run(["python", "lichess-bot.py"])
|