Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def bot_run():
|
|
| 14 |
status = status_file.read().strip()
|
| 15 |
|
| 16 |
# 如果 Status.txt 的值是 "1",則運行 bot_main.py
|
| 17 |
-
if status == "0"
|
| 18 |
with open("Status.txt", "w") as status_file:
|
| 19 |
status_file.write("1")
|
| 20 |
os.system("python bot_main.py")
|
|
|
|
| 14 |
status = status_file.read().strip()
|
| 15 |
|
| 16 |
# 如果 Status.txt 的值是 "1",則運行 bot_main.py
|
| 17 |
+
if status == "0":
|
| 18 |
with open("Status.txt", "w") as status_file:
|
| 19 |
status_file.write("1")
|
| 20 |
os.system("python bot_main.py")
|