feat: 更新意图处理逻辑,调整意图编号以优化消息管理
This commit is contained in:
parent
15fe7e7dce
commit
67f8285f05
@ -84,41 +84,41 @@ const manageIntent = async (ctx: Context) => {
|
||||
}
|
||||
if (intentAgent.isBaseIntent(intentRes)) {
|
||||
switch (intentRes.intent) {
|
||||
case 1:
|
||||
case 3:
|
||||
await message.updateOrReply(
|
||||
larkCard.genTempCard("chatId", { chat_id: chatId }) as string
|
||||
)
|
||||
break
|
||||
case 2:
|
||||
case 4:
|
||||
await attachService.ciMonitor(chatId)
|
||||
break
|
||||
case 4:
|
||||
case 6:
|
||||
await message.updateOrReply(
|
||||
larkCard.genTempCard("eggGuide", { chat_id: chatId }) as string
|
||||
)
|
||||
break
|
||||
case 5:
|
||||
case 7:
|
||||
groupAgent.report.setSubscription(ctx, "daily", true)
|
||||
break
|
||||
case 6:
|
||||
case 8:
|
||||
groupAgent.report.setSubscription(ctx, "weekly", true)
|
||||
break
|
||||
case 7:
|
||||
case 9:
|
||||
groupAgent.report.setSubscription(ctx, "daily", false)
|
||||
break
|
||||
case 8:
|
||||
case 10:
|
||||
groupAgent.report.setSubscription(ctx, "weekly", false)
|
||||
break
|
||||
case 9:
|
||||
case 11:
|
||||
groupAgent.report.gen4Test(ctx, "daily")
|
||||
break
|
||||
case 10:
|
||||
case 12:
|
||||
groupAgent.report.gen4Test(ctx, "weekly")
|
||||
break
|
||||
case 11:
|
||||
case 13:
|
||||
soupAgent.startOrStopGame(ctx, true, "manual")
|
||||
break
|
||||
case 13:
|
||||
case 1:
|
||||
default:
|
||||
groupAgent.agent(ctx)
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user