Skip to content

Commit

Permalink
feat: Add end message with project information and contact details
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng zhen committed Feb 13, 2025
1 parent 39e0fbd commit 0c9549b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cursor_pro_keep_alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,19 @@ def reset_machine_id(greater_than_0_45):
MachineIDResetter().reset_machine_ids()


def print_end_message():
logging.info("\n\n\n\n\n")
logging.info("=" * 30)
logging.info("所有操作已完成")
logging.info("\n=== 获取更多信息 ===")
logging.info("🔥 QQ交流群: 576045098")
logging.info("📺 B站UP主: 想回家的前端")
logging.info("=" * 30)
logging.info(
"请前往开源项目查看更多信息:https://github.com/chengazhen/cursor-auto-free"
)


if __name__ == "__main__":
print_logo()
greater_than_0_45 = check_cursor_version()
Expand Down Expand Up @@ -413,6 +426,7 @@ def reset_machine_id(greater_than_0_45):
# 仅执行重置机器码
reset_machine_id(greater_than_0_45)
logging.info("机器码重置完成")
print_end_message()
sys.exit(0)

logging.info("正在初始化浏览器...")
Expand Down Expand Up @@ -475,7 +489,7 @@ def reset_machine_id(greater_than_0_45):
logging.info("重置机器码...")
reset_machine_id(greater_than_0_45)
logging.info("所有操作已完成")

print_end_message()
else:
logging.error("获取会话令牌失败,注册流程未完成")

Expand Down

0 comments on commit 0c9549b

Please sign in to comment.