We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a077ca0 commit 5996100Copy full SHA for 5996100
model/GroupAdmin.js
@@ -5,6 +5,7 @@ import { QQApi } from "./index.js"
5
import { Time_unit, ROLE_MAP } from "../constants/other.js"
6
import formatDuration from "../tools/formatDuration.js"
7
import schedule from "node-schedule"
8
+import common from "../lib/common/common.js"
9
10
let _task = []
11
export default class GroupAdmin {
@@ -199,7 +200,7 @@ export default class GroupAdmin {
199
200
msg.push("检测到批量删除出错,尝试单个删除,该方法可能导致风控,请注意...")
201
for (let a of arr) {
202
msg.push(await this.kickMember(groupId, a, this.Bot.uin))
- await Bot.sleep(Math.random() * 5 + 1)
203
+ await common.sleep(Math.random() * 5 + 1)
204
}
205
} else {
206
msg.push("成功清理如下人员\n" + i.ul.map((item, index) =>
0 commit comments