mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +08:00
🐱💻别到GitHub拉取更新了……
This commit is contained in:
parent
fe95e689bc
commit
068feaa591
@ -5,7 +5,7 @@ from src.utils.base.config import get_config
|
||||
|
||||
remote_urls = [
|
||||
"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()
|
||||
if repo.head.commit != repo.commit('origin/main'):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def update_liteyuki() -> tuple[bool, str]:
|
||||
"""更新轻雪
|
||||
@ -45,3 +45,4 @@ def update_liteyuki() -> tuple[bool, str]:
|
||||
|
||||
else:
|
||||
raise PermissionError("更新已被禁用")
|
||||
return False, "更新已被禁用"
|
||||
|
Loading…
Reference in New Issue
Block a user