Merge pull request '🐛 修复AI开关未生效的BUG' (#16) from hotfix into main
All checks were successful
BuildImage / build-image (push) Successful in 2m0s
All checks were successful
BuildImage / build-image (push) Successful in 2m0s
Reviewed-on: #16
This commit is contained in:
commit
f895d045a7
@ -33,6 +33,10 @@ func AI(m *plugin.MessageContext) {
|
||||
if friendInfo.Wxid == "" {
|
||||
return
|
||||
}
|
||||
// 判断有没有启用AI
|
||||
if !friendInfo.EnableAi {
|
||||
return
|
||||
}
|
||||
|
||||
// 预处理一下发送的消息,用正则去掉@机器人的内容
|
||||
re := regexp.MustCompile(`@([^ | ]+)`)
|
||||
|
Loading…
Reference in New Issue
Block a user