🐛 : 修复群被动控制

This commit is contained in:
HibiKier
2024-07-23 19:00:38 +08:00
parent c75b0950bd
commit 475a188a80
3 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ async def _(
file = path / "text.json"
if not file.exists():
await Text("未设置群欢迎消息...").finish(reply=True)
message = json.load(open(file))["message"]
message = json.load(open(file, encoding="utf8"))["message"]
message_split = re.split(r"\[image:\d+\]", message)
if len(message_split) == 1:
await Text(message_split[0]).finish(reply=True)