node-karin 0.8.13 → 0.9.0

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.
@@ -40,7 +40,8 @@ ffmpeg_path:
40
40
  ffprobe_path:
41
41
 
42
42
  # 主人列表 主权限
43
- master: []
43
+ master:
44
+ - input
44
45
 
45
46
  # 管理员列表 子权限
46
47
  admin: []
@@ -68,6 +68,11 @@ class Listeners extends EventEmitter {
68
68
  const { id, contact, time, message_id } = options
69
69
  /** 重启花费时间 保留2位小数 */
70
70
  const restartTime = ((Date.now() - time) / 1000).toFixed(2)
71
+ /** 超过2分钟不发 */
72
+ if (Number(restartTime) > 120) {
73
+ await level.del(key)
74
+ return false
75
+ }
71
76
  const element = [
72
77
  segment.reply(message_id),
73
78
  segment.text(`Karin 重启成功:${restartTime}秒`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-karin",
3
- "version": "0.8.13",
3
+ "version": "0.9.0",
4
4
  "private": false,
5
5
  "description": "基于 Kritor 进行开发的nodejs机器人框架",
6
6
  "homepage": "https://github.com/KarinJS/Karin",