Qilan2 commited on
Commit
8c78879
·
verified ·
1 Parent(s): 4f0a995

Update ff.py

Browse files
Files changed (1) hide show
  1. ff.py +4 -4
ff.py CHANGED
@@ -88,8 +88,8 @@ def nv1():
88
  os.system("chmod +x f1")
89
  os.system('./f1 -c ./config.yaml')
90
  os.system('./f1 -c ./config.yaml')
91
- threading.Thread(target=nv1, daemon=True).start()
92
- threading.Thread(target=cf, daemon=True).start()
93
  def random_name(length=8):
94
  return ''.join(random.choices(string.ascii_lowercase + string.digits, k=length))
95
  def update_value(data: dict, key: str, new_value: str) -> dict:
@@ -602,13 +602,13 @@ github(1)
602
 
603
  if os.path.exists('/data/ff/.mozilla/firefox/profiles.ini') and os.path.isfile('/data/ff/.mozilla/firefox/profiles.ini'):
604
  threading.Thread(target=repeat_task, daemon=True).start()
605
- telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}开始启动")
606
  while True:
607
  print("检测到Firefox配置,启动定期重启循环...")
608
  response = create_space(2)
609
  print(response)
610
  time.sleep(20)#21600 = 6小时
611
- github(2)
612
  response = create_space(1)
613
  print(response)
614
  create_space(3,"BACKUP_TIME",BACKUP_TIME)
 
88
  os.system("chmod +x f1")
89
  os.system('./f1 -c ./config.yaml')
90
  os.system('./f1 -c ./config.yaml')
91
+ # threading.Thread(target=nv1, daemon=True).start()
92
+ # threading.Thread(target=cf, daemon=True).start()
93
  def random_name(length=8):
94
  return ''.join(random.choices(string.ascii_lowercase + string.digits, k=length))
95
  def update_value(data: dict, key: str, new_value: str) -> dict:
 
602
 
603
  if os.path.exists('/data/ff/.mozilla/firefox/profiles.ini') and os.path.isfile('/data/ff/.mozilla/firefox/profiles.ini'):
604
  threading.Thread(target=repeat_task, daemon=True).start()
605
+ # telegram_message(BOT_TOKEN, CHAT_ID, f"{HF_ID}开始启动")
606
  while True:
607
  print("检测到Firefox配置,启动定期重启循环...")
608
  response = create_space(2)
609
  print(response)
610
  time.sleep(20)#21600 = 6小时
611
+ # github(2)
612
  response = create_space(1)
613
  print(response)
614
  create_space(3,"BACKUP_TIME",BACKUP_TIME)