diff options
Diffstat (limited to 'ATRI/plugins')
-rw-r--r-- | ATRI/plugins/funny/data_source.py | 4 | ||||
-rw-r--r-- | ATRI/plugins/kimo/data_source.py | 2 | ||||
-rw-r--r-- | ATRI/plugins/polaroid/data_source.py | 2 | ||||
-rw-r--r-- | ATRI/plugins/setu/tf_dealer.py | 4 | ||||
-rw-r--r-- | ATRI/plugins/wife/data_source.py | 8 |
5 files changed, 10 insertions, 10 deletions
diff --git a/ATRI/plugins/funny/data_source.py b/ATRI/plugins/funny/data_source.py index 7e9ba30..739f1b4 100644 --- a/ATRI/plugins/funny/data_source.py +++ b/ATRI/plugins/funny/data_source.py @@ -28,9 +28,7 @@ class Funny(Service): path = FUNNY_DIR / file_name if not path.is_file(): logger.warning("未发现笑话相关数据,正在下载并保存...") - url = ( - "https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/laugh.txt" - ) + url = "https://fastly.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/laugh.txt" res = await request.get(url) context = res.text with open(path, "w", encoding="utf-8") as w: diff --git a/ATRI/plugins/kimo/data_source.py b/ATRI/plugins/kimo/data_source.py index 025f999..e93c68c 100644 --- a/ATRI/plugins/kimo/data_source.py +++ b/ATRI/plugins/kimo/data_source.py @@ -12,7 +12,7 @@ from ATRI.exceptions import ReadFileError, WriteFileError CHAT_PATH = Path(".") / "data" / "database" / "kimo" CHAT_PATH.mkdir(parents=True, exist_ok=True) -KIMO_URL = "https://cdn.jsdelivr.net/gh/Kyomotoi/AnimeThesaurus/data.json" +KIMO_URL = "https://fastly.jsdelivr.net/gh/Kyomotoi/AnimeThesaurus/data.json" class Kimo(Service): diff --git a/ATRI/plugins/polaroid/data_source.py b/ATRI/plugins/polaroid/data_source.py index 3575342..f1c44b0 100644 --- a/ATRI/plugins/polaroid/data_source.py +++ b/ATRI/plugins/polaroid/data_source.py @@ -8,7 +8,7 @@ from .image_dealer import image_dealer TENCENT_AVATER_URL = "https://q1.qlogo.cn/g?b=qq&nk={user_id}&s=640" -SOURCE_URL = "https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/" +SOURCE_URL = "https://fastly.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/" class Polaroid(Service): diff --git a/ATRI/plugins/setu/tf_dealer.py b/ATRI/plugins/setu/tf_dealer.py index a6bd3f0..4e1eafa 100644 --- a/ATRI/plugins/setu/tf_dealer.py +++ b/ATRI/plugins/setu/tf_dealer.py @@ -21,7 +21,9 @@ SETU_PATH.mkdir(parents=True, exist_ok=True) TEMP_PATH.mkdir(parents=True, exist_ok=True) -MODULE_URL = "https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/nsfw.tflite" +MODULE_URL = ( + "https://fastly.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/nsfw.tflite" +) VGG_MEAN = [104, 117, 123] diff --git a/ATRI/plugins/wife/data_source.py b/ATRI/plugins/wife/data_source.py index 7074f93..29d5b61 100644 --- a/ATRI/plugins/wife/data_source.py +++ b/ATRI/plugins/wife/data_source.py @@ -24,16 +24,16 @@ class Wife(Service): "mua!", "贴贴!", MessageSegment.image( - file="https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife0.jpg" + file="https://fastly.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife0.jpg" ), MessageSegment.image( - file="https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife1.jpg" + file="https://fastly.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife1.jpg" ), MessageSegment.image( - file="https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife2.jpg" + file="https://fastly.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife2.jpg" ), MessageSegment.image( - file="https://cdn.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife3.jpg" + file="https://fastly.jsdelivr.net/gh/Kyomotoi/CDN@master/project/ATRI/wife3.jpg" ), ] ) |