🐛 fix random_trigger_prob per group not working

This commit is contained in:
FuQuan233 2025-02-28 18:02:15 +08:00
parent 82fb2f7c3e
commit 3cfd1b3f49

View file

@ -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