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): diff --git a/konabot/plugins/simple_notify/ask_llm.py b/konabot/plugins/simple_notify/ask_llm.py index 0b22d94..f7d85cc 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}