feat: 移除聊天记录检查逻辑,以简化消息处理流程
This commit is contained in:
parent
f7ccac9b1f
commit
945e529fab
@ -36,11 +36,6 @@ const agent = async (ctx: Context) => {
|
|||||||
excludeMentions: [appInfo.appName],
|
excludeMentions: [appInfo.appName],
|
||||||
})
|
})
|
||||||
// 如果没有聊天记录,返回错误信息
|
// 如果没有聊天记录,返回错误信息
|
||||||
if (chatHistory.length === 0) {
|
|
||||||
logger.info("No chat history found")
|
|
||||||
await message.updateOrReply(cardGender.genErrorCard("未找到聊天记录"))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
logger.debug(`Chat history: ${JSON.stringify(chatHistory)}`)
|
logger.debug(`Chat history: ${JSON.stringify(chatHistory)}`)
|
||||||
|
|
||||||
// 根据Mention,拼装原始消息
|
// 根据Mention,拼装原始消息
|
||||||
|
Loading…
x
Reference in New Issue
Block a user