From ae78c26b22b98fb68752a435ad3bc0d5513b390c Mon Sep 17 00:00:00 2001 From: student_2333 Date: Sun, 25 Feb 2024 01:33:56 +0800 Subject: [PATCH] up --- README.md | 9 ++++++--- StuSign.lxl.js => StuSign.js | 2 +- manifest.json | 10 ++++++++++ tooth.json | 36 ++++++++++++++++++++---------------- tsconfig.json | 7 +++++++ 5 files changed, 44 insertions(+), 20 deletions(-) rename StuSign.lxl.js => StuSign.js (99%) create mode 100644 manifest.json create mode 100644 tsconfig.json diff --git a/README.md b/README.md index c430618..14786b9 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ _自用插件,功能虽然比不上论坛里的其它插件,但就是图简 ## 安装方法 -将 `StuSign.lls.js` 扔进 BDS 插件目录即可 +```bash +lip install github.com/lgc-LLDev/StuSign +``` ## 配置文件 @@ -53,5 +55,6 @@ QQ:3076823485 ## 更新日志 -- 0.1.1 - - 添加每天 0:00 自动给所有服务器内玩家签到 +### 0.1.1 + +- 添加每天 0:00 自动给所有服务器内玩家签到 diff --git a/StuSign.lxl.js b/StuSign.js similarity index 99% rename from StuSign.lxl.js rename to StuSign.js index a3bc224..35658ec 100644 --- a/StuSign.lxl.js +++ b/StuSign.js @@ -65,7 +65,7 @@ setInterval(() => { } }, 1000); -ll.registerPlugin('StuSign', '简洁的入服签到插件', [0, 1, 1], { +ll.registerPlugin('StuSign', '简洁的入服签到插件', [0, 1, 3], { Author: 'student_2333', License: 'Apache-2.0', }); diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..af3ed06 --- /dev/null +++ b/manifest.json @@ -0,0 +1,10 @@ +{ + "entry": "StuSign.js", + "name": "StuSign", + "type": "lse-quickjs", + "dependencies": [ + { + "name": "legacy-script-engine-quickjs" + } + ] +} diff --git a/tooth.json b/tooth.json index 344972d..3607129 100644 --- a/tooth.json +++ b/tooth.json @@ -1,20 +1,24 @@ { - "format_version": 1, - "tooth": "github.com/lgc-LLSEDev/StuSign", - "version": "0.1.1", - "dependencies": {}, - "information": { + "$schema": "https://raw.githubusercontent.com/lippkg/lip/main/schemas/tooth.v2.schema.json", + "format_version": 2, + "tooth": "github.com/lgc-LLDev/StuSign", + "version": "0.1.3", + "info": { "name": "StuSign", - "description": "简洁的签到插件", - "author": "lgc2333", - "license": "Apache-2.0", - "homepage": "https://github.com/lgc-LLSEDev/StuSign" + "description": "A simple plugin that automatically give player awards per day", + "author": "student_2333", + "tags": ["plugin", "lse", "quickjs", "check-in", "award"] }, - "placement": [ - { - "source": "StuSign.lxl.js", - "destination": "plugins/StuSign.js" - } - ], - "possession": ["plugins/StuSign/"] + "files": { + "place": [ + { + "src": "StuSign.js", + "dest": "plugins/StuSign/StuSign.js" + }, + { + "src": "manifest.json", + "dest": "plugins/StuSign/manifest.json" + } + ] + } } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..b715d7d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../tsconfig.template.json", + "include": ["*.js"], + "compilerOptions": { + "outDir": "./dist" + } +}