diff --git a/pkg/service/asChat/robot/replyAndRuler.go b/pkg/service/asChat/robot/replyAndRuler.go index b881589..3f22ffe 100644 --- a/pkg/service/asChat/robot/replyAndRuler.go +++ b/pkg/service/asChat/robot/replyAndRuler.go @@ -202,6 +202,10 @@ func (k *ReplyWhenWaiterNoAction) Hit(event ws.ListenEventData, sender *accountF if event.Client == nil || event.EventType != ws.EventChatMessage { return } + //客服的消息不需要处理 + if event.ChatUser.Role == 2 { + return + } hit = true task = RobotTask{ RunTime: time.Now().Add(k.DelaySecond * time.Second),