feat: 添加命令以立即发送日简报和周简报
This commit is contained in:
parent
7bc5003674
commit
0a3d46e0b4
@ -166,6 +166,18 @@ const manageCMDMsg = (ctx: Context.Data) => {
|
||||
groupAgent.report.unsubscribe(ctx)
|
||||
return
|
||||
}
|
||||
// 立即发送日简报
|
||||
if (msgText === "总结日报") {
|
||||
logger.info(`bot command is summary, chatId: ${chatId}`)
|
||||
groupAgent.report.gen4Test(ctx, "daily")
|
||||
return
|
||||
}
|
||||
// 立即发送周简报
|
||||
if (msgText === "总结周报") {
|
||||
logger.info(`bot command is summary, chatId: ${chatId}`)
|
||||
groupAgent.report.gen4Test(ctx, "weekly")
|
||||
return
|
||||
}
|
||||
// 使用GroupAgent兜底
|
||||
groupAgent.agent(ctx)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user