🐛 fix random_trigger_prob per group not working

This commit is contained in:
FuQuan233 2025-02-28 18:02:15 +08:00
parent b01f2825d1
commit 4af60b8145

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