From eaefd4b9fef0ee01d8eb0c08e726ee820e136cc7 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Mon, 21 Oct 2024 23:16:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trimo_plugin_msctconverter/command_structure.py | 8 ++++---- .../trimo_plugin_msctconverter/msctexec.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py b/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py index 8b07d97..ee34869 100644 --- a/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py +++ b/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py @@ -505,7 +505,7 @@ async def _( def go_chk_point() -> bool: res, pnt = query_convert_points( usr_id, - "music", + "structure", random.random() % 0.4 + 0.1, ) if not res: @@ -576,7 +576,7 @@ async def _( fp := str( ( temporary_dir - / (fn := "msctr[{}]-{}.zip".format(hanzi_timeid(), usr_id)) + / (fn := "struct[{}]-{}.zip".format(hanzi_timeid(), usr_id)) ).resolve() ), ) @@ -639,10 +639,10 @@ async def _( "转换结束,当前剩余转换点数:⌊p⌋≈{:.2f}|{}".format( query_convert_points( usr_id, - "music", + "structure", 0, )[1], - configdict["maxPersonConvert"]["music"], + configdict["maxPersonConvert"]["structure"], ) ), at_sender=True, diff --git a/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py b/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py index 004d4f1..67c5bbc 100644 --- a/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py +++ b/src/nonebot_plugins/trimo_plugin_msctconverter/msctexec.py @@ -95,9 +95,9 @@ else: "donateSite": "", "helpPicPath": "https://foruda.gitee.com/images/1685873169584963569/95fe9b0b_9911226.png", "maxCacheSize": 1048576, - "maxCacheTime": {".mcfunction": 900, ".mid .midi": 1800, ".json": 1800}, + "maxCacheTime": {".mcfunction .txt": 900, ".mid .midi": 1800, ".json": 1800}, "maxSingleFileSize": { - ".mcfunction": 524288, + ".mcfunction .txt": 524288, ".mid .midi": 131072, ".json": 8192, },