From 721cb749fd322e789d0e9a5fe9a6f1c03ae42569 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 24 Feb 2022 13:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=90=20Transfer=20to=20gitlab.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eat.py | 2 +- keyword.py | 4 ++-- throwit.py | 6 +++--- yvlu.py | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/eat.py b/eat.py index 2430b50..9bdbece 100644 --- a/eat.py +++ b/eat.py @@ -22,7 +22,7 @@ import json try: git_source = config['git_source'] except: - git_source = "https://raw.githubusercontent.com/Xtao-Labs/PagerMaid_Plugins/master/" + git_source = "https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master/" positions = { "1": [297, 288], "2": [85, 368], diff --git a/keyword.py b/keyword.py index 2dd603a..b184842 100644 --- a/keyword.py +++ b/keyword.py @@ -938,13 +938,13 @@ async def funcset(context): func_name = cmd[1] func_online = \ json.loads( - requests.get("https://raw.githubusercontent.com/xtaodada/PagerMaid_Plugins/master" + requests.get("https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master" "/keyword_func/list.json").content)["list"] if func_name in func_online: func_directory = f"data/keyword_func/" file_path = func_name + ".py" func_content = requests.get( - f"https://raw.githubusercontent.com/xtaodada/PagerMaid_Plugins/master" + f"https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master" f"/keyword_func/{func_name}.py").content with open(file_path, "wb") as f: f.write(func_content) diff --git a/throwit.py b/throwit.py index b257e97..4a97c0e 100644 --- a/throwit.py +++ b/throwit.py @@ -93,15 +93,15 @@ async def throwit(context): reply_to = context.message.reply_to_msg_id if exists("plugins/throwit/" + str(target_user.user.id) + ".jpg"): if not exists('plugins/throwit/1.png'): - r = get('https://raw.githubusercontent.com/xtaodada/PagerMaid_Plugins/master/throwit/1.png') + r = get('https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master/throwit/1.png') with open("plugins/throwit/1.png", "wb") as code: code.write(r.content) if not exists('plugins/throwit/2.png'): - r = get('https://raw.githubusercontent.com/xtaodada/PagerMaid_Plugins/master/throwit/2.png') + r = get('https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master/throwit/2.png') with open("plugins/throwit/2.png", "wb") as code: code.write(r.content) if not exists('plugins/throwit/3.png'): - r = get('https://raw.githubusercontent.com/xtaodada/PagerMaid_Plugins/master/throwit/3.png') + r = get('https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master/throwit/3.png') with open("plugins/throwit/3.png", "wb") as code: code.write(r.content) # 随机数生成 diff --git a/yvlu.py b/yvlu.py index fa017c6..ff3eea8 100644 --- a/yvlu.py +++ b/yvlu.py @@ -160,20 +160,20 @@ async def yv_lu_(context): # 下载资源文件 for num in range(1, 5): if not exists('plugins/yvlu/p' + str(num) + '.png'): - re = get('https://raw.githubusercontent.com/Xtao-Labs/PagerMaid_Plugins/master/yvlu/p' + str(num) + '.png') + re = get('https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master/yvlu/p' + str(num) + '.png') with open('plugins/yvlu/p' + str(num) + '.png', 'wb') as bg: bg.write(re.content) if not exists('plugins/yvlu/mask.png'): - re = get('https://raw.githubusercontent.com/Xtao-Labs/PagerMaid_Plugins/master/yvlu/mask.png') + re = get('https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master/yvlu/mask.png') with open('plugins/yvlu/mask.png', 'wb') as bg: bg.write(re.content) if not exists('plugins/yvlu/mask1.png'): - re = get('https://raw.githubusercontent.com/Xtao-Labs/PagerMaid_Plugins/master/yvlu/mask1.png') + re = get('https://gitlab.com/Xtao-Labs/PagerMaid_Plugins/-/raw/master/yvlu/mask1.png') with open('plugins/yvlu/mask1.png', 'wb') as bg: bg.write(re.content) if not exists('plugins/yvlu/ZhuZiAWan-2.ttc'): await context.edit('下载字体中。。。') - re = get('https://raw.githubusercontent.com/Xtao-Labs/Telegram_PaimonBot/master/assets/fonts/ZhuZiAWan-2.ttc') + re = get('https://gitlab.com/Xtao-Labs/Telegram_PaimonBot/-/raw/master/assets/fonts/ZhuZiAWan-2.ttc') with open('plugins/yvlu/ZhuZiAWan-2.ttc', 'wb') as bg: bg.write(re.content) # 获取回复信息