koishi-plugin-starfx-bot 0.14.0 → 0.14.1

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
@@ -529,7 +529,7 @@ function apply(ctx, cfg) {
529
529
  if (detectControl(controlJson, session.guildId, "echo")) {
530
530
  const elements = session.elements;
531
531
  try {
532
- if (elements[0].type === "at") elements.shift();
532
+ while (elements[0].type === "at") elements.shift();
533
533
  elements[0].attrs.content = elements[0].attrs?.content.trim().split(" ").slice(1).join(" ");
534
534
  if (elements.length == 1 && !elements[0].attrs.content?.length) {
535
535
  return session.quote?.elements;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "contributors": [
5
5
  "StarFreedomX <starfreedomx@outlook.com>"
6
6
  ],
7
- "version": "0.14.0",
7
+ "version": "0.14.1",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
10
10
  "files": [
package/readme.md CHANGED
@@ -106,3 +106,4 @@ StarFreedomX机器人的小功能,自用
106
106
  | `0.13.6` | 恢复误注释内容 |
107
107
  | `0.13.7` | 修复bdbd无param时出现的异常 |
108
108
  | `0.14.0` | echo增加对引用消息的支持,且支持有at触发 |
109
+ | `0.14.1` | echo多at情况支持 |