Skip to content

Commit

Permalink
deepseek兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
avilliai committed Feb 3, 2025
1 parent 5cfbbc7 commit 2c8577b
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,29 @@ async def main():


def updaat(f=False,source=None,yamls={}):

sources = [
"https://github.com/avilliai/Eridanus.git",
"https://github.moeyy.xyz/https://github.com/avilliai/Eridanus",
"https://mirror.ghproxy.com/https://github.com/avilliai/Eridanus",
"https://ghfast.top/https://github.com/avilliai/Eridanus.git",
"https://gh.llkk.cc/https://github.com/avilliai/Eridanus.git"
]
if source==None:
for i in sources:
logger.info(f"{sources.index(i)}. {i}")
logger.info("拉取bot代码\n--------------------")
logger.info("选择更新源(git源 镜像源相互兼容):\n1 git源\n2 git代理源1\n3 git代理源2")
sleep(0.3)
source = input("选择更新源(输入数字 ):")
else:
source=str(source)
if source == "1":

if source is not None:
source = int(source)
if source < 1 or source > len(sources):
logger.error("无效输入,重新执行")
updaat()
# os.system("git pull https://github.com/avilliai/Manyana.git")
# 启动进程
p = subprocess.Popen([f'{git_path}', 'pull', 'https://github.com/avilliai/Eridanus.git'], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
elif source=="2":
p = subprocess.Popen([f'{git_path}', 'pull', 'https://github.moeyy.xyz/https://github.com/avilliai/Eridanus'], stdout=subprocess.PIPE,
p = subprocess.Popen([f'{git_path}', 'pull', sources[source]], stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
elif source=="3":
p=subprocess.Popen([f'{git_path}', 'pull', 'https://mirror.ghproxy.com/https://github.com/avilliai/Eridanus'], stdout=subprocess.PIPE,stderr=subprocess.PIPE)

else:
logger.error("无效输入,重新执行")
Expand Down

0 comments on commit 2c8577b

Please # to comment.