chore: 去除风控延迟

This commit is contained in:
手瓜一十雪 2024-08-06 18:01:36 +08:00
parent ea678d805d
commit 890236af23

View File

@ -24,12 +24,8 @@ async function cloneMsg(msg: RawMessage): Promise<RawMessage | undefined> {
if (sendElements.length === 0) {
logDebug('需要clone的消息无法解析将会忽略掉', msg);
}
//logDebug('克隆消息', sendElements);
try {
const nodeMsg = await NTQQMsgApi.sendMsg(selfPeer, sendElements, true);
await sleep(500); // 防止风控
return nodeMsg;
} catch (e) {
logError(e, '克隆转发消息失败,将忽略本条消息', msg);