koishi-plugin-xxck-1 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +5 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -46,9 +46,11 @@ var import_luxon = require("luxon");
46
46
  var import_canvas = require("@napi-rs/canvas");
47
47
  var name = "xxck-1";
48
48
  var Config = import_koishi.Schema.object({
49
- masterQQ: import_koishi.Schema.string().description("主人QQ号,拥有最高权限").required(),
50
- signResetHour: import_koishi.Schema.number().description("签到重置小时").default(0),
51
- signResetMinute: import_koishi.Schema.number().description("签到重置分钟").default(0)
49
+ masterQQ: import_koishi.Schema.string().description("主人QQ号,拥有录入卡片、审核、开关功能等最高权限").required(),
50
+ // 强制必填,控制台会标红提示
51
+ signResetHour: import_koishi.Schema.number().description("每日签到重置的小时数(0-23)").default(0).min(0).max(23),
52
+ // 增加范围限制,避免无效配置
53
+ signResetMinute: import_koishi.Schema.number().description("每日签到重置的分钟数(0-59)").default(0).min(0).max(59)
52
54
  });
53
55
  var BASE_DIR = import_path.default.resolve(__dirname, "../data");
54
56
  if (!import_fs.default.existsSync(BASE_DIR)) import_fs.default.mkdirSync(BASE_DIR, { recursive: true });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-xxck-1",
3
3
  "description": "自用抽卡",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [