🐱💻别到GitHub拉取更新了……

This commit is contained in:
EillesWan 2024-08-11 11:38:17 +08:00
parent fe95e689bc
commit 068feaa591

View File

@ -5,7 +5,7 @@ from src.utils.base.config import get_config
remote_urls = [ remote_urls = [
"https://gitee.com/TriM-Organization/LiteyukiBot-TriM.git", "https://gitee.com/TriM-Organization/LiteyukiBot-TriM.git",
"https://github.com/TriM-Organization/LiteyukiBot-TriM.git" # "https://github.com/TriM-Organization/LiteyukiBot-TriM.git"
] ]
@ -17,7 +17,7 @@ def detect_update() -> bool:
repo.remotes.origin.fetch() repo.remotes.origin.fetch()
if repo.head.commit != repo.commit('origin/main'): if repo.head.commit != repo.commit('origin/main'):
return True return True
return False
def update_liteyuki() -> tuple[bool, str]: def update_liteyuki() -> tuple[bool, str]:
"""更新轻雪 """更新轻雪
@ -45,3 +45,4 @@ def update_liteyuki() -> tuple[bool, str]:
else: else:
raise PermissionError("更新已被禁用") raise PermissionError("更新已被禁用")
return False, "更新已被禁用"