1
0
Fork 0

🐛 修复AI开关未生效的BUG

This commit is contained in:
李寻欢 2024-01-23 16:23:07 +08:00
parent 497e17ec62
commit eb2e292e8e
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ func AI(m *plugin.MessageContext) {
if friendInfo.Wxid == "" {
return
}
// 判断有没有启用AI
if !friendInfo.EnableAi {
return
}
// 预处理一下发送的消息,用正则去掉@机器人的内容
re := regexp.MustCompile(`@([^| ]+)`)