diff --git a/src/onebot11/action/msg/SendMsg.ts b/src/onebot11/action/msg/SendMsg.ts index ce33f5a2..d8744876 100644 --- a/src/onebot11/action/msg/SendMsg.ts +++ b/src/onebot11/action/msg/SendMsg.ts @@ -567,8 +567,10 @@ export class SendMsg extends BaseAction { let MsgNodeList: Promise[] = []; for (const eles of sendElementsSplit) { MsgNodeList.push(sendMsg(selfPeer, eles, [], true)); + await sleep(Math.trunc(sendElementsSplit.length / 10) * 100); //await sleep(10); } + for (const msgNode of MsgNodeList) { let result = await msgNode; nodeMsgIds.push(result.msgId);