mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2025-09-04 18:30:43 +00:00
🐛 fix random_trigger_prob per group not working
This commit is contained in:
parent
b01f2825d1
commit
4af60b8145
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue