diff --git a/plugin/plugins/ai.go b/plugin/plugins/ai.go index 7d7410e1..7d860b81 100644 --- a/plugin/plugins/ai.go +++ b/plugin/plugins/ai.go @@ -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 }