mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2026-02-05 11:38:05 +00:00
🐛 fix random_trigger_prob per group not working
This commit is contained in:
parent
82fb2f7c3e
commit
3cfd1b3f49
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