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
dbfeeac313
commit
54d2ba1df4
@ -113,7 +113,7 @@ class GroupManager:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def add_bot(
|
async def add_bot(
|
||||||
cls, bot: Bot, operator_id: str, group_id: str, group: GroupConsole | None
|
cls, bot: Bot, operator_id: str, group_id: str, group: GroupConsole
|
||||||
):
|
):
|
||||||
"""拉入bot
|
"""拉入bot
|
||||||
|
|
||||||
@ -123,7 +123,11 @@ class GroupManager:
|
|||||||
group_id: 群组id
|
group_id: 群组id
|
||||||
group: GroupConsole
|
group: GroupConsole
|
||||||
"""
|
"""
|
||||||
if base_config.get("flag") and operator_id not in bot.config.superusers:
|
if (
|
||||||
|
base_config.get("flag")
|
||||||
|
and operator_id not in bot.config.superusers
|
||||||
|
and group.group_flag != 1
|
||||||
|
):
|
||||||
"""退出群组"""
|
"""退出群组"""
|
||||||
try:
|
try:
|
||||||
if result_msg := base_config.get("message"):
|
if result_msg := base_config.get("message"):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user