mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
chore: 去除风控延迟
This commit is contained in:
@@ -24,12 +24,8 @@ async function cloneMsg(msg: RawMessage): Promise<RawMessage | undefined> {
|
|||||||
if (sendElements.length === 0) {
|
if (sendElements.length === 0) {
|
||||||
logDebug('需要clone的消息无法解析,将会忽略掉', msg);
|
logDebug('需要clone的消息无法解析,将会忽略掉', msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
//logDebug('克隆消息', sendElements);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const nodeMsg = await NTQQMsgApi.sendMsg(selfPeer, sendElements, true);
|
const nodeMsg = await NTQQMsgApi.sendMsg(selfPeer, sendElements, true);
|
||||||
await sleep(500); // 防止风控
|
|
||||||
return nodeMsg;
|
return nodeMsg;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logError(e, '克隆转发消息失败,将忽略本条消息', msg);
|
logError(e, '克隆转发消息失败,将忽略本条消息', msg);
|
||||||
|
Reference in New Issue
Block a user