ui: 为了拖慢各位的时间我加了一个逆天效果

This commit is contained in:
ikun0014
2024-10-18 21:22:21 +08:00
parent 651d9f79b2
commit 062e58ea57
17 changed files with 199 additions and 142 deletions

10
main.py
View File

@@ -34,24 +34,24 @@ async def main_loop():
app_id = prompt_app_id()
await main(app_id, repos)
except KeyboardInterrupt:
log.info("\n👋 程序已退出")
log("👋 程序已退出")
except EOFError:
break
async def run():
try:
log.info('❗ App ID可以在SteamDB或Steam商店链接页面查看')
log('❗ App ID可以在SteamDB或Steam商店链接页面查看')
await main_loop()
except KeyboardInterrupt:
log.info("\n👋 程序已退出")
log("👋 程序已退出")
except Exception as e:
log.error(f'⚠ 发生错误: {stack_error(e)}, 将在5秒后退出')
log(f'⚠ 发生错误: {stack_error(e)}, 将在5秒后退出')
await asyncio.sleep(5)
if __name__ == '__main__':
try:
asyncio.run(run())
except KeyboardInterrupt:
log.info("\n👋 程序已退出")
log("👋 程序已退出")
except SystemExit:
sys.exit()