mirror of
https://github.com/FuQuan233/nonebot-plugin-llmchat.git
synced 2025-09-06 19:40:44 +00:00
✨ 支持用户黑名单 #20
This commit is contained in:
parent
ed1b9792e7
commit
6f69cc3cff
3 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,10 @@ async def is_triggered(event: GroupMessageEvent) -> bool:
|
|||
if state.preset_name == "off":
|
||||
return False
|
||||
|
||||
# 黑名单用户
|
||||
if event.user_id in plugin_config.blacklist_user_ids:
|
||||
return False
|
||||
|
||||
state.past_events.append(event)
|
||||
|
||||
# 原有@触发条件
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue