@hieuzest/koishi-plugin-riichi-city 0.5.6 → 0.5.7

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 +2 -5
  2. package/package.json +2 -4
package/lib/index.js CHANGED
@@ -49,7 +49,6 @@ var import_api2 = require("./api");
49
49
 
50
50
  // src/dhs.ts
51
51
  var import_koishi = require("koishi");
52
- var import_koishi_utils = require("@hieuzest/koishi-utils");
53
52
  var import_lobby = require("./lobby");
54
53
  var RiichiCityDHS = class extends import_koishi.Service {
55
54
  constructor(ctx, config) {
@@ -236,13 +235,11 @@ ${config.extraHelp}`.trim();
236
235
  return "已开启通知";
237
236
  }
238
237
  });
239
- ctx.guild().command("rc-dhs.start <args:text>").userFields(["authority"]).channelFields(["rc-dhs/bind"]).action(async ({ session }, args) => {
240
- if (!args) return;
238
+ ctx.guild().command("rc-dhs.start <args:mjlist>").userFields(["authority"]).channelFields(["rc-dhs/bind"]).action(async ({ session }, argsList) => {
239
+ if (!argsList?.length) return;
241
240
  const contestId = session.channel["rc-dhs/bind"];
242
241
  if (!contestId) return;
243
242
  if (!this.checkPermission(session)) return;
244
- args = import_koishi.h.unescape(args);
245
- const argsList = (0, import_koishi_utils.splitBackslashEscapedArgs)(args);
246
243
  const players = [];
247
244
  const c = await this.getDHS(contestId);
248
245
  if (!c) return "大会室未找到";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hieuzest/koishi-plugin-riichi-city",
3
3
  "description": "",
4
- "version": "0.5.6",
4
+ "version": "0.5.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -24,11 +24,9 @@
24
24
  "riichi-city"
25
25
  ],
26
26
  "peerDependencies": {
27
+ "@hieuzest/koishi-plugin-mahjong": "^3.0.0",
27
28
  "koishi": "^4.17.8"
28
29
  },
29
- "dependencies": {
30
- "@hieuzest/koishi-utils": "^1.0.0"
31
- },
32
30
  "koishi": {
33
31
  "service": {
34
32
  "implements": [