perf: 解除启动时需要回车的限制

perf: 优化Linux自动更新的时间
This commit is contained in:
Soulter
2023-03-05 12:40:51 +08:00
parent d478ff02b6
commit 3092bbd210
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ def initBot(cfg, prov):
print("\n[System] 如果有任何问题,请在https://github.com/Soulter/QQChannelChatGPT上提交issue说明问题!或者添加QQ905617992")
print("[System] 请给https://github.com/Soulter/QQChannelChatGPT点个star!")
print("[System] 请给https://github.com/Soulter/QQChannelChatGPT点个star!")
input("\n仔细阅读完以上信息后,输入任意信息并回车以继续")
# input("\n仔细阅读完以上信息后,输入任意信息并回车以继续")
try:
run_bot(cfg['qqbot']['appid'], cfg['qqbot']['token'])
except BaseException as e:
+2 -2
View File
@@ -82,11 +82,11 @@ def hot_update():
print('自启动')
py = sys.executable
os.execl(py, py, *sys.argv)
time.sleep(60*20)
time.sleep(60*60*3)
except BaseException as e:
print(e)
print("upd出现异常, 请联系QQ905617992")
time.sleep(60*20)
time.sleep(60*60*3)
def update_version(ver):
if not os.path.exists('update_record'):