mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-05 23:47:54 +08:00
add gtag when message sent
This commit is contained in:
@@ -297,16 +297,24 @@ const mainLoop = async () => {
|
|||||||
.filter((it) => it.bizType !== 101 && it.isSelf)
|
.filter((it) => it.bizType !== 101 && it.isSelf)
|
||||||
.slice(-recentMessageQuantityForLlm)
|
.slice(-recentMessageQuantityForLlm)
|
||||||
await sendGptContent(pageMapByName.boss!, messageListForGpt)
|
await sendGptContent(pageMapByName.boss!, messageListForGpt)
|
||||||
|
gtag('read_no_reply_reminder_llm_content_sent')
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
if (rechatLlmFallback === RECHAT_LLM_FALLBACK.SEND_LOOK_FORWARD_EMOTION) {
|
if (rechatLlmFallback === RECHAT_LLM_FALLBACK.SEND_LOOK_FORWARD_EMOTION) {
|
||||||
await sendLookForwardReplyEmotion(pageMapByName.boss!)
|
await sendLookForwardReplyEmotion(pageMapByName.boss!)
|
||||||
|
gtag('read_no_reply_reminder_look_forward_reply_emotion_sent', {
|
||||||
|
fallback: true
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
|
gtag('read_no_reply_reminder_encounter_error', {
|
||||||
|
error: err
|
||||||
|
})
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await sendLookForwardReplyEmotion(pageMapByName.boss!)
|
await sendLookForwardReplyEmotion(pageMapByName.boss!)
|
||||||
|
gtag('read_no_reply_reminder_look_forward_reply_emotion_sent')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cursorToContinueFind += 1
|
cursorToContinueFind += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user