更正私聊时功能管理回复错误

This commit is contained in:
HibiKier
2022-12-11 01:30:23 +08:00
parent 8adff43113
commit 940514b16b
5 changed files with 31 additions and 7 deletions
@@ -88,7 +88,7 @@ async def custom_group_welcome(
task_data = None
async def change_group_switch(cmd: str, group_id: int, is_super: bool = False):
async def change_group_switch(cmd: str, group_id: int, is_super: bool = False) -> str:
"""
说明:
修改群功能状态
@@ -85,7 +85,7 @@ async def _(bot: Bot, event: MessageEvent):
"group_name"
]
await switch_rule_matcher.send(
f"已禁用群聊 {group_name}({block_type}) 的 {_cmd[2:]} 功能"
f"已{_cmd[:2]}群聊 {group_name}({block_type}) 的 {_cmd[2:]} 功能"
)
elif block_type in ["all", "private", "group", "a", "p", "g"]:
block_type = "all" if block_type == "a" else block_type