diff --git a/plugins/image_management/send_image/__init__.py b/plugins/image_management/send_image/__init__.py index 26e4786b..d44061aa 100755 --- a/plugins/image_management/send_image/__init__.py +++ b/plugins/image_management/send_image/__init__.py @@ -12,7 +12,7 @@ from utils.message_builder import image from utils.utils import FreqLimiter, cn2py, get_message_text, is_number from .rule import rule -from .anti import pixRandomChangeFile +from .anti import pix_random_change_file __zx_plugin_name__ = "本地图库" __plugin_usage__ = f""" @@ -76,7 +76,7 @@ async def _(event: MessageEvent): if int(index) > length - 1 or int(index) < 0: await send_img.finish(f"超过当前上下限!({length - 1})") abs_path = os.path.join(os.getcwd(), path / f"{index}.jpg") - pixRandomChangeFile(abs_path) + pix_random_change_file(abs_path) result = image(path / f"{index}.jpg") if result: logger.info(