mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-30 05:29:02 +08:00
feat: limit sendMsg
This commit is contained in:
parent
d11cef5907
commit
90dd934f95
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user