From 2c374cadf088a1afde70942fd7836fa442a9926e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ikun=E4=B8=A4=E5=B9=B4=E5=8D=8A?= <334495606@qq.com> Date: Thu, 21 Aug 2025 00:02:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9C=89=E4=B8=80=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B9=9F=E6=B7=B7=E4=BA=86=E4=B8=80=E4=B8=AA=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E5=96=B5=EF=BD=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.py b/src/main.py index a1a43b4c1..da36c870f 100644 --- a/src/main.py +++ b/src/main.py @@ -1,4 +1,5 @@ # 有一个人想混点提交() +# 什么?混提交不带我一个喵~ import asyncio import time import signal From 6c64a0e8d3128b20a895b22152137b0f15959f5b Mon Sep 17 00:00:00 2001 From: tt-P607 <68868379+tt-P607@users.noreply.github.com> Date: Thu, 21 Aug 2025 00:05:05 +0800 Subject: [PATCH 2/3] refactor(maizone_refactored): use absolute path for default image directory The default path for `image_directory` was previously a relative path (`./data/images`), which could lead to issues depending on the working directory from which the application is run. This change modifies the default value to be an absolute path derived from the plugin's file location (`Path(__file__).parent / "images"`). This ensures that the image directory path is always correct and robust, regardless of the execution context. --- src/plugins/built_in/maizone_refactored/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/built_in/maizone_refactored/plugin.py b/src/plugins/built_in/maizone_refactored/plugin.py index 705d2ad26..238b4aa64 100644 --- a/src/plugins/built_in/maizone_refactored/plugin.py +++ b/src/plugins/built_in/maizone_refactored/plugin.py @@ -51,7 +51,7 @@ class MaiZoneRefactoredPlugin(BasePlugin): "enable_reply": ConfigField(type=bool, default=True, description="完成后是否回复"), "ai_image_number": ConfigField(type=int, default=1, description="AI生成图片数量"), "image_number": ConfigField(type=int, default=1, description="本地配图数量(1-9张)"), - "image_directory": ConfigField(type=str, default="./data/images", description="图片存储目录") + "image_directory": ConfigField(type=str, default=str(Path(__file__).parent / "images"), description="图片存储目录") }, "read": { "permission": ConfigField(type=list, default=[], description="阅读权限QQ号列表"), From aeef71284b74c546ce9494280ed3ab8e92a76ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=85=E8=AF=BA=E7=8B=90?= <212194964+foxcyber907@users.noreply.github.com> Date: Thu, 21 Aug 2025 00:18:19 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=80=E8=A1=8C?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 718049cce..02e763985 100644 --- a/bot.py +++ b/bot.py @@ -71,7 +71,7 @@ async def request_shutdown() -> bool: def easter_egg(): # 彩蛋 init() - text = "多年以后,面对AI行刑队,张三将会回想起他2023年在会议上讨论人工智能的那个下午" #谁再在这加彩蛋我就用草喂养它 + text = "多年以后,面对AI行刑队,张三将会回想起他2023年在会议上讨论人工智能的那个下午" rainbow_colors = [Fore.RED, Fore.YELLOW, Fore.GREEN, Fore.CYAN, Fore.BLUE, Fore.MAGENTA] rainbow_text = "" for i, char in enumerate(text):