📝 文档与代码注释信息微调
This commit is contained in:
7
src/resources/vanilla_resource/functions/func.md
Normal file
7
src/resources/vanilla_resource/functions/func.md
Normal file
@@ -0,0 +1,7 @@
|
||||
## 文件类型允许
|
||||
|
||||
- `.mcfunction`
|
||||
|
||||
- `.lyf`
|
||||
|
||||
- `lyfunction`
|
18
src/resources/vanilla_resource/functions/hello.mcfunction → src/resources/vanilla_resource/functions/hello.lyfunction
Executable file → Normal file
18
src/resources/vanilla_resource/functions/hello.mcfunction → src/resources/vanilla_resource/functions/hello.lyfunction
Executable file → Normal file
@@ -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
|
8
src/resources/vanilla_resource/functions/poke.mcfunction → src/resources/vanilla_resource/functions/poke.lyfunction
Executable file → Normal file
8
src/resources/vanilla_resource/functions/poke.mcfunction → src/resources/vanilla_resource/functions/poke.lyfunction
Executable file → Normal file
@@ -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
|
Reference in New Issue
Block a user