@hieuzest/koishi-plugin-mahjongpub 0.2.3 → 0.2.4
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 +5 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -473,8 +473,11 @@ var ContestManager = class {
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
async onMatchFinished(record) {
|
|
476
|
-
this.extra[record.cid]?.broadcast(
|
|
477
|
-
`
|
|
476
|
+
this.extra[record.cid]?.broadcast([
|
|
477
|
+
`[${record.cls}-${record.rowi + 1}] 对局完成:`,
|
|
478
|
+
record.url,
|
|
479
|
+
...record.results.map((x) => `${x.name} ${x.num}`)
|
|
480
|
+
].join("\n"));
|
|
478
481
|
await (0, import_koishi2.sleep)(this.config.finishInterval);
|
|
479
482
|
return this.startMatch(+record.cid, record.cls);
|
|
480
483
|
}
|