@zhin.js/plugin-repeater 0.0.7 → 0.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-repeater",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Repeater plugin for Zhin.js — auto-repeat messages when group members echo the same content",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -41,10 +41,10 @@
41
41
  "dependencies": {},
42
42
  "devDependencies": {
43
43
  "typescript": "^6.0.3",
44
- "zhin.js": "1.0.72"
44
+ "zhin.js": "1.0.74"
45
45
  },
46
46
  "peerDependencies": {
47
- "zhin.js": "1.0.72"
47
+ "zhin.js": "1.0.74"
48
48
  },
49
49
  "repository": {
50
50
  "type": "git",
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: repeater
3
- description: 复读机:当群内连续多人发送相同消息时,Bot 自动跟读。支持阈值和冷却配置。
3
+ description: >-
4
+ 复读机:群内连续多人发送相同消息时 Bot 自动跟读。纯中间件行为,
5
+ 由阈值和冷却配置控制,无 AI 工具。
4
6
  keywords:
5
7
  - repeater
6
8
  - 复读
7
9
  - 复读机
8
10
  - 跟读
9
11
  - echo
10
- - parrot
11
12
  tags:
12
13
  - repeater
13
14
  - fun
@@ -15,6 +16,12 @@ tags:
15
16
  tools: []
16
17
  ---
17
18
 
18
- ## 执行规则
19
+ # 复读机
19
20
 
20
- - 行为由中间件与命令 `repeater-status` 控制;无需额外 AI 工具即可工作。
21
+ 中间件自动检测群内连续相同消息,达到阈值后 Bot 跟读一次。无 AI 工具可调用。
22
+
23
+ ## 行为
24
+
25
+ - 默认阈值:连续 3 条相同消息触发跟读
26
+ - 跟读后进入冷却期,避免刷屏
27
+ - 通过命令 `repeater-status` 查看/切换当前群的开关状态