koishi-plugin-starfx-bot 0.13.6 → 0.13.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 CHANGED
@@ -541,7 +541,7 @@ function apply(ctx, cfg) {
541
541
  ctx.command("bdbd [param]").option("starNum", "-n <starNum: number>").option("color", "-c <color: string>").option("train", "-t <train: string>").option("band", "-b <band: string>").action(async ({ session, options }, param) => {
542
542
  if (detectControl(controlJson, session.guildId, "bdbd")) {
543
543
  const p = session.send("图片处理中请稍等...");
544
- console.log(param.slice(0, 1e3));
544
+ console.log(param?.slice(0, 1e3));
545
545
  const drawConfig = await handleBanGDreamConfig(options);
546
546
  const imgSrc = await getImageSrc(session, param);
547
547
  if (!imgSrc?.length) return "输入无效";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "contributors": [
5
5
  "StarFreedomX <starfreedomx@outlook.com>"
6
6
  ],
7
- "version": "0.13.6",
7
+ "version": "0.13.7",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
10
10
  "files": [
package/readme.md CHANGED
@@ -104,3 +104,4 @@ StarFreedomX机器人的小功能,自用
104
104
  | `0.13.4` | Re修订:不再return图片对象,防止$()可能导致的参数溢出 |
105
105
  | `0.13.5` | Re再修订:bdbd新增检测异常机制,防止$()可能导致的问题 |
106
106
  | `0.13.6` | 恢复误注释内容 |
107
+ | `0.13.7` | 修复bdbd无param时出现的异常 |