Skip to content

Commit

Permalink
feat: 机器人在群内改名后可响应
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Jan 23, 2024
1 parent 0d1bdd4 commit ebc932d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wclient/robot/handler_ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func aiMessagePrefix(msg *wcferry.WxMsg) string {
}

if msg.Content[0:1] != "/" {
if strings.Contains(msg.Content, "@"+self().Name) {
if strings.Contains(msg.Xml, self().Wxid) {
msg.Content = "/ai " + msg.Content
} else {
wakeWord := args.GetMember(msg.Sender).AiArgot
Expand Down

0 comments on commit ebc932d

Please sign in to comment.