Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def keep_alive():
|
|
| 29 |
print(f"Ping Status: {response.status_code}") # 確保請求成功
|
| 30 |
except Exception as e:
|
| 31 |
print(f"Error: {e}")
|
| 32 |
-
time.sleep(
|
| 33 |
|
| 34 |
SPACE_URL = "https://mke0108-discordbot.hf.space/"
|
| 35 |
threading.Thread(target=keep_alive, daemon=True).start()
|
|
|
|
| 29 |
print(f"Ping Status: {response.status_code}") # 確保請求成功
|
| 30 |
except Exception as e:
|
| 31 |
print(f"Error: {e}")
|
| 32 |
+
time.sleep(86400/4) # 每 5 分鐘執行一次
|
| 33 |
|
| 34 |
SPACE_URL = "https://mke0108-discordbot.hf.space/"
|
| 35 |
threading.Thread(target=keep_alive, daemon=True).start()
|