mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2025-09-06 11:30:46 +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
|
return True
|
||||||
|
|
||||||
# 随机触发条件
|
# 随机触发条件
|
||||||
if random.random() < plugin_config.random_trigger_prob:
|
if random.random() < state.random_trigger_prob:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue