From 0b7d21aeb0c1ebada74b15e5aa2fceb526f07ab4 Mon Sep 17 00:00:00 2001 From: MixBadGun <1059129006@qq.com> Date: Sat, 22 Nov 2025 01:22:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=EF=BC=8C=E4=BB=A5=E4=BE=BF=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=87=A0=E7=99=BE=E5=B9=B4=E7=9A=84=EF=BC=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- konabot/plugins/simple_notify/ask_llm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/konabot/plugins/simple_notify/ask_llm.py b/konabot/plugins/simple_notify/ask_llm.py index 7c80689..601c4a3 100644 --- a/konabot/plugins/simple_notify/ask_llm.py +++ b/konabot/plugins/simple_notify/ask_llm.py @@ -49,6 +49,9 @@ SYSTEM_PROMPT = """你是一个专门解析提醒请求的助手。请分析用 用户:"5分钟前提醒我关火" 输出:{"datetime": null, "datetime_delta": "PT5M", "datetime_delta_minus": true, "content": "关火", "is_notice": true} +用户:"五百年后提醒我关火" +输出:{"datetime": null, "datetime_delta": "P500Y", "datetime_delta_minus": false, "content": "关火", "is_notice": true} + 用户:"昨天提醒我关火" 输出:{"datetime": null, "datetime_delta": "P1D", "datetime_delta_minus": true, "content": "关火", "is_notice": true} From ae59c20e2fd331492bff3ca45d1eccd3ea744c9b Mon Sep 17 00:00:00 2001 From: Passthem Date: Mon, 24 Nov 2025 18:36:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=B9=20pyrightconfig?= =?UTF-8?q?=20=E7=9A=84=20ignore=EF=BC=8C=E6=96=B9=E4=BE=BF=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=85=B6=E4=BB=96=20IDE=20=E7=9A=84=E4=BA=BA=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20config=20=E6=96=87=E4=BB=B6=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E8=99=9A=E6=8B=9F=E7=8E=AF=E5=A2=83=E4=BD=8D=E7=BD=AE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 6 ++++++ konabot/plugins/kona_ph/core/image.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8bbe36e..ccea55b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,11 @@ +# 基本的数据文件,以及环境用文件 /.env /data +/pyrightconfig.json +/pyrightconfig.toml +# 缓存文件 __pycache__ + +# 可能会偶然生成的 diff 文件 /*.diff diff --git a/konabot/plugins/kona_ph/core/image.py b/konabot/plugins/kona_ph/core/image.py index 590238e..6f60bf8 100644 --- a/konabot/plugins/kona_ph/core/image.py +++ b/konabot/plugins/kona_ph/core/image.py @@ -17,7 +17,7 @@ class PuzzleImageManager: 21, ) img_name = f"{id}{suffix}" - (KONAPH_IMAGE_BASE / img_name).write_bytes(data) + _ = (KONAPH_IMAGE_BASE / img_name).write_bytes(data) return img_name def remove_puzzle_image(self, img_name: str):