From 4af60b81453a7d49164190b05645df329544866c Mon Sep 17 00:00:00 2001 From: FuQuan233 Date: Fri, 28 Feb 2025 18:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20random=5Ftrigger=5Fprob=20?= =?UTF-8?q?per=20group=20not=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_llmchat/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nonebot_plugin_llmchat/__init__.py b/nonebot_plugin_llmchat/__init__.py index e220485..86281a0 100644 --- a/nonebot_plugin_llmchat/__init__.py +++ b/nonebot_plugin_llmchat/__init__.py @@ -167,7 +167,7 @@ async def is_triggered(event: GroupMessageEvent) -> bool: return True # 随机触发条件 - if random.random() < plugin_config.random_trigger_prob: + if random.random() < state.random_trigger_prob: return True return False