koishi-plugin-ggcevo-game 1.0.14 → 1.0.16

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.
package/lib/index.d.ts CHANGED
@@ -9,7 +9,7 @@ export interface Config {
9
9
  autorank: boolean;
10
10
  ignoreGlobalLimit: boolean;
11
11
  admins: string[];
12
- groupId: string;
12
+ groupId: string[];
13
13
  checkInterval: number;
14
14
  }
15
15
  export declare const Config: Schema<Config>;
package/lib/index.js CHANGED
@@ -37,7 +37,7 @@ var Config = import_koishi.Schema.object({
37
37
  autorank: import_koishi.Schema.boolean().description("是否开启每小时自动同步rank数据").default(true),
38
38
  ignoreGlobalLimit: import_koishi.Schema.boolean().description("是否开启无限制兑换").default(false),
39
39
  admins: import_koishi.Schema.array(import_koishi.Schema.string()).description("管理员QQ号列表,支持配置多个").default([]).role("table"),
40
- groupId: import_koishi.Schema.string().description("游戏大厅黑名单通知群组,例如 onebot:123456"),
40
+ groupId: import_koishi.Schema.array(import_koishi.Schema.string()).description("游戏大厅黑名单通知群组,例如 onebot:123456").default([]).role("table"),
41
41
  checkInterval: import_koishi.Schema.number().default(60).description("检查间隔(秒)")
42
42
  });
43
43
  var inject = {
@@ -1444,7 +1444,7 @@ ${achievementList.join("\n")}`;
1444
1444
  $and: [
1445
1445
  { handle: { $in: allHandles } },
1446
1446
  { id: { $gte: 1889 } },
1447
- { level: { $in: ["B", "B+", "A", "S"] } }
1447
+ { level: { $in: ["B+", "A"] } }
1448
1448
  ]
1449
1449
  }).execute().then((res) => res.map((r) => ({
1450
1450
  handle: r.handle,
@@ -1469,7 +1469,7 @@ ${achievementList.join("\n")}`;
1469
1469
  ),
1470
1470
  `玩家数量: ${lobby.slotsHumansTaken}/${lobby.slotsHumansTotal}`
1471
1471
  ].join("\n");
1472
- await ctx.broadcast([config.groupId], message);
1472
+ await ctx.broadcast(config.groupId, message);
1473
1473
  processedLobbies.add(lobby.id);
1474
1474
  }
1475
1475
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "星际争霸2游戏大厅咕咕虫-Evo地图专属插件",
4
- "version": "1.0.14",
4
+ "version": "1.0.16",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [