feat: michat去除group agent功能
This commit is contained in:
parent
69254635c8
commit
179d3701fc
@ -121,6 +121,7 @@ const manageCMDMsg = (ctx: Context.Data) => {
|
|||||||
larkBody: { msgText, chatId },
|
larkBody: { msgText, chatId },
|
||||||
} = ctx
|
} = ctx
|
||||||
logger.info(`bot req text: ${msgText}`)
|
logger.info(`bot req text: ${msgText}`)
|
||||||
|
|
||||||
// 处理命令消息
|
// 处理命令消息
|
||||||
if (msgText.trim() === "/id") {
|
if (msgText.trim() === "/id") {
|
||||||
logger.info(`bot command is /id, chatId: ${chatId}`)
|
logger.info(`bot command is /id, chatId: ${chatId}`)
|
||||||
@ -128,13 +129,6 @@ const manageCMDMsg = (ctx: Context.Data) => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 选择群组信息
|
|
||||||
if (msgText.trim().startsWith("/g")) {
|
|
||||||
logger.info(`bot command is /groupchat, chatId: ${chatId}`)
|
|
||||||
groupAgent(ctx)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// michat专属功能
|
// michat专属功能
|
||||||
if (app === "michat") {
|
if (app === "michat") {
|
||||||
// 帮助
|
// 帮助
|
||||||
@ -172,6 +166,13 @@ const manageCMDMsg = (ctx: Context.Data) => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 选择群组信息
|
||||||
|
if (msgText.trim().startsWith("/g")) {
|
||||||
|
logger.info(`bot command is /groupchat, chatId: ${chatId}`)
|
||||||
|
groupAgent(ctx)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 帮助
|
// 帮助
|
||||||
if (msgText.trim() === "/help") {
|
if (msgText.trim() === "/help") {
|
||||||
logger.info(`bot command is /help, chatId: ${chatId}`)
|
logger.info(`bot command is /help, chatId: ${chatId}`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user