fix: 移动/help命令处理逻辑到正确的位置,确保私聊场景下的功能正常
This commit is contained in:
parent
4dd5d8a36c
commit
eff7374be2
@ -131,13 +131,6 @@ const manageCMDMsg = async (ctx: Context) => {
|
||||
return
|
||||
}
|
||||
|
||||
// 私聊场景下或者/help命令
|
||||
if (msgText === "/help" || isP2P) {
|
||||
logger.info(`bot command is /help, chatId: ${chatId}`)
|
||||
await manageHelpMsg(ctx, "eggGuide")
|
||||
return
|
||||
}
|
||||
|
||||
// 开启CICD成功提醒
|
||||
if (msgText.startsWith("/ci")) {
|
||||
logger.info(`bot command is /ci, chatId: ${chatId}`)
|
||||
@ -178,6 +171,13 @@ const manageCMDMsg = async (ctx: Context) => {
|
||||
return
|
||||
}
|
||||
|
||||
// 私聊场景下或者/help命令
|
||||
if (msgText === "/help" || isP2P) {
|
||||
logger.info(`bot command is /help, chatId: ${chatId}`)
|
||||
await manageHelpMsg(ctx, "eggGuide")
|
||||
return
|
||||
}
|
||||
|
||||
// 仅限群组功能
|
||||
if (isInGroup) {
|
||||
// 注册群组日报
|
||||
|
Loading…
x
Reference in New Issue
Block a user