mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-14 21:52:56 +08:00
🎨 入群检测代码优化
This commit is contained in:
parent
4c7c223b2c
commit
545f6fd7f9
@ -49,9 +49,8 @@ class GroupManager:
|
||||
group: GroupConsole
|
||||
"""
|
||||
if group:
|
||||
await GroupConsole.filter(
|
||||
group_id=group_id, channel_id__isnull=True
|
||||
).update(group_flag=1)
|
||||
group.group_flag = 1
|
||||
await group.save(update_fields=["group_flag"])
|
||||
else:
|
||||
block_plugin = ""
|
||||
if plugin_list := await PluginInfo.filter(default_status=False).all():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user