From ff97ae73f1cd253645bc26ad8101b68055a68322 Mon Sep 17 00:00:00 2001 From: Zhaoyi-Yan Date: Tue, 6 Jun 2023 15:16:57 +0800 Subject: [PATCH] add \n after @nickname for group chat --- channel/chat_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel/chat_channel.py b/channel/chat_channel.py index 795787b..dd80b48 100644 --- a/channel/chat_channel.py +++ b/channel/chat_channel.py @@ -220,7 +220,7 @@ class ChatChannel(Channel): reply = super().build_text_to_voice(reply.content) return self._decorate_reply(context, reply) if context.get("isgroup", False): - reply_text = "@" + context["msg"].actual_user_nickname + " " + reply_text.strip() + reply_text = "@" + context["msg"].actual_user_nickname + "\n" + reply_text.strip() reply_text = conf().get("group_chat_reply_prefix", "") + reply_text else: reply_text = conf().get("single_chat_reply_prefix", "") + reply_text