@hieuzest/koishi-plugin-riichi-city 0.5.5 → 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.
- package/lib/index.js +2 -4
- package/package.json +2 -1
package/lib/index.js
CHANGED
|
@@ -235,13 +235,11 @@ ${config.extraHelp}`.trim();
|
|
|
235
235
|
return "已开启通知";
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
ctx.guild().command("rc-dhs.start <args:
|
|
239
|
-
if (!
|
|
238
|
+
ctx.guild().command("rc-dhs.start <args:mjlist>").userFields(["authority"]).channelFields(["rc-dhs/bind"]).action(async ({ session }, argsList) => {
|
|
239
|
+
if (!argsList?.length) return;
|
|
240
240
|
const contestId = session.channel["rc-dhs/bind"];
|
|
241
241
|
if (!contestId) return;
|
|
242
242
|
if (!this.checkPermission(session)) return;
|
|
243
|
-
args = import_koishi.h.unescape(args);
|
|
244
|
-
const argsList = args.split(/\s|,|,|\|\|/).filter((x) => x);
|
|
245
243
|
const players = [];
|
|
246
244
|
const c = await this.getDHS(contestId);
|
|
247
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.
|
|
4
|
+
"version": "0.5.7",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -24,6 +24,7 @@
|
|
|
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
30
|
"koishi": {
|