diff --git a/constant/function.ts b/constant/function.ts index 84c9287..6cf11bc 100644 --- a/constant/function.ts +++ b/constant/function.ts @@ -5,8 +5,8 @@ const functionMap = { xIcon: "🍳", }, groupAgent: { - xName: "Mi Chat ηΎ€θŠεŠ©ζ‰‹", - xAuthor: "AIεˆ›ζ–°εΊ”η”¨η»„", + xName: "ε°η…Žθ›‹ Group Agent", + xAuthor: "YIBinary ❀️ Yingbo", xIcon: "πŸ”₯", }, sheetDB: { diff --git a/controller/groupAgent/report.ts b/controller/groupAgent/report.ts index 707bea5..34c5398 100644 --- a/controller/groupAgent/report.ts +++ b/controller/groupAgent/report.ts @@ -191,8 +191,8 @@ const subscribe = async ( ) => { const cardGender = larkCard.child("groupAgent") const sendErrorMsg = () => - larkService.message.sendCard2Chat( - larkBody.chatId, + larkService.message.replyCard( + larkBody.messageId, cardGender.genErrorCard(RespMessage.registerFailed) ) try { @@ -218,8 +218,8 @@ const subscribe = async ( `chatId: ${larkBody.chatId} has been registered, timeScope: ${timeScope}` ) // ε‘ι€ε·²η»ζ³¨ε†ŒθΏ‡δΊ†ηš„ζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.hasRegisteredDaily @@ -245,8 +245,8 @@ const subscribe = async ( return } // ε‘ι€ζˆεŠŸζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.registerDailySuccess @@ -269,8 +269,8 @@ const unsubscribe = async ( ) => { const cardGender = larkCard.child("groupAgent") const sendErrorMsg = () => - larkService.message.sendCard2Chat( - larkBody.chatId, + larkService.message.replyCard( + larkBody.messageId, cardGender.genErrorCard(RespMessage.cancelFailed) ) try { @@ -297,8 +297,8 @@ const unsubscribe = async ( `chatId: ${larkBody.chatId} has not been registered, timeScope: ${timeScope}` ) // 发送ζœͺζ³¨ε†Œηš„ζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.cancelDailySuccess @@ -321,8 +321,8 @@ const unsubscribe = async ( } // ε‘ι€ζˆεŠŸζΆˆζ― - await larkService.message.sendCard2Chat( - larkBody.chatId, + await larkService.message.replyCard( + larkBody.messageId, cardGender.genSuccessCard( timeScope === "daily" ? RespMessage.cancelDailySuccess