🐛 修复AI对话限制错误的BUG

This commit is contained in:
李寻欢 2024-08-21 15:53:05 +08:00
parent f7d153848f
commit 7eb8ba9dd8

View File

@ -43,7 +43,7 @@ func AI(m *plugin.MessageContext) {
if !friendInfo.EnableAi {
return
}
if friendInfo.AiUsedToday > 0 && friendInfo.AiUsedToday >= friendInfo.AiFreeLimit {
if friendInfo.AiFreeLimit > 0 && friendInfo.AiUsedToday >= friendInfo.AiFreeLimit {
if notifyMap[m.FromUser] {
return
}