feat: limit sendMsg

This commit is contained in:
手瓜一十雪
2024-05-12 23:18:27 +08:00
parent d11cef5907
commit 90dd934f95

View File

@@ -567,8 +567,10 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
let MsgNodeList: Promise<RawMessage>[] = [];
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);