From 7eb8ba9dd8895f43320cce2f9a9c2de5283ef0f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Wed, 21 Aug 2024 15:53:05 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8DAI=E5=AF=B9=E8=AF=9D?= =?UTF-8?q?=E9=99=90=E5=88=B6=E9=94=99=E8=AF=AF=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/plugins/ai.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }