dpv007 commited on
Commit
c2e3a29
·
verified ·
1 Parent(s): b31da35

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. lichess-bot/start_bot.py +3 -0
  2. requirements.txt +3 -2
  3. start.sh +1 -1
lichess-bot/start_bot.py CHANGED
@@ -20,6 +20,9 @@ def main():
20
  with open("config.yml", "w") as f:
21
  yaml.dump(config, f)
22
 
 
 
 
23
  print("Executing lichess-bot...")
24
  os.system("python3 lichess-bot.py")
25
 
 
20
  with open("config.yml", "w") as f:
21
  yaml.dump(config, f)
22
 
23
+ print("Upgrading account to bot status just in case...")
24
+ os.system("python3 lichess-bot.py -u")
25
+
26
  print("Executing lichess-bot...")
27
  os.system("python3 lichess-bot.py")
28
 
requirements.txt CHANGED
@@ -1,4 +1,5 @@
 
 
1
  fastapi
2
  uvicorn
3
- chess
4
- pyyaml
 
1
+ chess~=1.11
2
+ PyYAML~=6.0
3
  fastapi
4
  uvicorn
5
+ jinja2
 
start.sh CHANGED
@@ -1,6 +1,6 @@
1
  #!/bin/bash
2
 
3
- echo "Starting Flask API Web Server..."
4
  python3 app.py &
5
 
6
  echo "Starting Lichess Bot..."
 
1
  #!/bin/bash
2
 
3
+ echo "Starting FastAPI Web Server..."
4
  python3 app.py &
5
 
6
  echo "Starting Lichess Bot..."