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