mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: limit sendMsg
This commit is contained in:
@@ -567,8 +567,10 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
|
|||||||
let MsgNodeList: Promise<RawMessage>[] = [];
|
let MsgNodeList: Promise<RawMessage>[] = [];
|
||||||
for (const eles of sendElementsSplit) {
|
for (const eles of sendElementsSplit) {
|
||||||
MsgNodeList.push(sendMsg(selfPeer, eles, [], true));
|
MsgNodeList.push(sendMsg(selfPeer, eles, [], true));
|
||||||
|
await sleep(Math.trunc(sendElementsSplit.length / 10) * 100);
|
||||||
//await sleep(10);
|
//await sleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const msgNode of MsgNodeList) {
|
for (const msgNode of MsgNodeList) {
|
||||||
let result = await msgNode;
|
let result = await msgNode;
|
||||||
nodeMsgIds.push(result.msgId);
|
nodeMsgIds.push(result.msgId);
|
||||||
|
Reference in New Issue
Block a user