From fc017c82558dbc4bd9f8bd2896eb9ef8b4dd2ca5 Mon Sep 17 00:00:00 2001 From: Nanaloveyuki <136328617+Nanaloveyuki@users.noreply.github.com> Date: Fri, 4 Apr 2025 11:44:50 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=96=87=E6=A1=A3=E4=B8=8E=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=B3=A8=E9=87=8A=E4=BF=A1=E6=81=AF=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/usage/agreement.md | 2 +- .../vanilla_resource/functions/func.md | 7 +++++++ .../{hello.mcfunction => hello.lyfunction} | 18 +++++++++--------- .../{poke.mcfunction => poke.lyfunction} | 8 ++++---- tests/test_config_load.py | 2 +- 5 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 src/resources/vanilla_resource/functions/func.md rename src/resources/vanilla_resource/functions/{hello.mcfunction => hello.lyfunction} (96%) mode change 100755 => 100644 rename src/resources/vanilla_resource/functions/{poke.mcfunction => poke.lyfunction} (96%) mode change 100755 => 100644 diff --git a/docs/zh/usage/agreement.md b/docs/zh/usage/agreement.md index 86b207c5..a73ba4ac 100755 --- a/docs/zh/usage/agreement.md +++ b/docs/zh/usage/agreement.md @@ -4,7 +4,7 @@ order: 3 --- # 用户协议 -1. 本项目遵循`MIT`协议,你可以自由使用,修改,分发,但是请保留原作者信息 +1. 本项目遵循`LSO`协议,你可以自由使用,修改,分发,但是请保留原作者信息 2. 你可以选择开启`auto_report`(默认开启),轻雪会收集以下内容 - 运行环境的设备信息:CPU,内存,系统信息及Python信息 - 插件信息(不含插件数据) diff --git a/src/resources/vanilla_resource/functions/func.md b/src/resources/vanilla_resource/functions/func.md new file mode 100644 index 00000000..cb83e058 --- /dev/null +++ b/src/resources/vanilla_resource/functions/func.md @@ -0,0 +1,7 @@ +## 文件类型允许 + +- `.mcfunction` + +- `.lyf` + +- `lyfunction` \ No newline at end of file diff --git a/src/resources/vanilla_resource/functions/hello.mcfunction b/src/resources/vanilla_resource/functions/hello.lyfunction old mode 100755 new mode 100644 similarity index 96% rename from src/resources/vanilla_resource/functions/hello.mcfunction rename to src/resources/vanilla_resource/functions/hello.lyfunction index 586e9d48..ac435ce2 --- a/src/resources/vanilla_resource/functions/hello.mcfunction +++ b/src/resources/vanilla_resource/functions/hello.lyfunction @@ -1,10 +1,10 @@ -api send_private_msg user_id=qq message=msg -sleep 3 - -# 使用asyncio.create_task()创建一个新的任务,不等待任务完成直接执行下一条命令 -nohup function hello - -sleep 10 - -# cancel所有的tasks +api send_private_msg user_id=qq message=msg +sleep 3 + +# 使用asyncio.create_task()创建一个新的任务,不等待任务完成直接执行下一条命令 +nohup function hello + +sleep 10 + +# cancel所有的tasks end \ No newline at end of file diff --git a/src/resources/vanilla_resource/functions/poke.mcfunction b/src/resources/vanilla_resource/functions/poke.lyfunction old mode 100755 new mode 100644 similarity index 96% rename from src/resources/vanilla_resource/functions/poke.mcfunction rename to src/resources/vanilla_resource/functions/poke.lyfunction index 4e04ddb8..a63d859a --- a/src/resources/vanilla_resource/functions/poke.mcfunction +++ b/src/resources/vanilla_resource/functions/poke.lyfunction @@ -1,5 +1,5 @@ -api friend_poke user_id=user_id -api friend_poke user_id=user_id -sleep 0.2 -nohup function poke +api friend_poke user_id=user_id +api friend_poke user_id=user_id +sleep 0.2 +nohup function poke await \ No newline at end of file diff --git a/tests/test_config_load.py b/tests/test_config_load.py index d4c30397..b79527b8 100755 --- a/tests/test_config_load.py +++ b/tests/test_config_load.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- """ -Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved +Copyright (C) 2020-2025 LiteyukiStudio. All Rights Reserved @Time : 2024/8/11 下午11:07 @Author : snowykami