Skip to content

Commit 5996100

Browse files
committed
🐛 清理人数报错
Fixes #160
1 parent a077ca0 commit 5996100

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

model/GroupAdmin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { QQApi } from "./index.js"
55
import { Time_unit, ROLE_MAP } from "../constants/other.js"
66
import formatDuration from "../tools/formatDuration.js"
77
import schedule from "node-schedule"
8+
import common from "../lib/common/common.js"
89

910
let _task = []
1011
export default class GroupAdmin {
@@ -199,7 +200,7 @@ export default class GroupAdmin {
199200
msg.push("检测到批量删除出错,尝试单个删除,该方法可能导致风控,请注意...")
200201
for (let a of arr) {
201202
msg.push(await this.kickMember(groupId, a, this.Bot.uin))
202-
await Bot.sleep(Math.random() * 5 + 1)
203+
await common.sleep(Math.random() * 5 + 1)
203204
}
204205
} else {
205206
msg.push("成功清理如下人员\n" + i.ul.map((item, index) =>

0 commit comments

Comments
 (0)