koishi-plugin-starfx-bot 0.13.2 → 0.13.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.
package/lib/index.js CHANGED
@@ -502,13 +502,13 @@ function apply(ctx, cfg) {
502
502
  if (cfg.openLock) {
503
503
  ctx.command("封印 [param]").action(async ({ session }, param) => {
504
504
  if (detectControl(controlJson, session.guildId, "lock"))
505
- return await drawLock(ctx, await getImageSrc(session, param));
505
+ await session.send(await drawLock(ctx, await getImageSrc(session, param)));
506
506
  });
507
507
  }
508
508
  if (cfg.openSold) {
509
509
  ctx.command("卖掉了 [param]").action(async ({ session }, param) => {
510
510
  if (detectControl(controlJson, session.guildId, "sold"))
511
- return await drawSold(ctx, await getImageSrc(session, param));
511
+ await session.send(await drawSold(ctx, await getImageSrc(session, param)));
512
512
  });
513
513
  }
514
514
  if (cfg.roll) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "contributors": [
5
5
  "StarFreedomX <starfreedomx@outlook.com>"
6
6
  ],
7
- "version": "0.13.2",
7
+ "version": "0.13.3",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
10
10
  "files": [
package/readme.md CHANGED
@@ -100,3 +100,4 @@ StarFreedomX机器人的小功能,自用
100
100
  | `0.13.0` | 语录支持tag以及调整权重 |
101
101
  | `0.13.1` | 修复pure类型绘图名称错误 |
102
102
  | `0.13.2` | 优化了tag在权重很大情况下的筛选效率 |
103
+ | `0.13.3` | 不再return图片对象,防止$()可能导致的参数溢出 |