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
d0b1024566
commit
478238f4b8
@ -21,7 +21,7 @@ async def handle_api_call(bot: Bot, api: str, data: dict[str, Any]):
|
||||
if catchphrase and (message := data.get("message")):
|
||||
for i in range(len(message) - 1, -1, -1):
|
||||
if message[i].type == "text":
|
||||
message[i].data["text"] += catchphrase
|
||||
message[i].data["text"] = f"{message[i].data['text']} {catchphrase}"
|
||||
logger.debug(
|
||||
f"文本: {message[i].data['text']} 添加口癖: {catchphrase}"
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user