mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复群权限检测获取群问题
This commit is contained in:
parent
6120c3bc44
commit
19fa40e967
@ -417,7 +417,9 @@ class AuthChecker:
|
|||||||
"""
|
"""
|
||||||
if group_id := session.id3 or session.id2:
|
if group_id := session.id3 or session.id2:
|
||||||
text = message.extract_plain_text()
|
text = message.extract_plain_text()
|
||||||
group, _ = await GroupConsole.get_or_create(group_id=group_id)
|
group, _ = await GroupConsole.get_or_create(
|
||||||
|
group_id=group_id, channel_id__isnull=True
|
||||||
|
)
|
||||||
if group.level < 0:
|
if group.level < 0:
|
||||||
"""群权限小于0"""
|
"""群权限小于0"""
|
||||||
logger.debug(
|
logger.debug(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user