mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-11 15:00:00 +08:00
Update utils.py
This commit is contained in:
+2
-1
@@ -5,6 +5,7 @@ from configs.config import SYSTEM_PROXY, Config
|
|||||||
from typing import List, Union, Optional, Type, Any
|
from typing import List, Union, Optional, Type, Any
|
||||||
from nonebot.adapters.onebot.v11 import Bot, Message
|
from nonebot.adapters.onebot.v11 import Bot, Message
|
||||||
from nonebot.matcher import matchers, Matcher
|
from nonebot.matcher import matchers, Matcher
|
||||||
|
from pathlib import Path
|
||||||
import httpx
|
import httpx
|
||||||
import nonebot
|
import nonebot
|
||||||
import pytz
|
import pytz
|
||||||
@@ -400,7 +401,7 @@ def change_pixiv_image_links(
|
|||||||
return url
|
return url
|
||||||
|
|
||||||
|
|
||||||
def change_img_md5(path_file: str) -> bool:
|
def change_img_md5(path_file: Union[str, Path]) -> bool:
|
||||||
"""
|
"""
|
||||||
说明:
|
说明:
|
||||||
改变图片MD5
|
改变图片MD5
|
||||||
|
|||||||
Reference in New Issue
Block a user