mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
🐛 修复邀请群组强制退出
This commit is contained in:
@@ -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"):
|
||||||
|
|||||||
Reference in New Issue
Block a user