MKE0108 commited on
Commit
536bf64
·
verified ·
1 Parent(s): fb730ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(1) # 每 5 分鐘執行一次
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()