From 72878477dc14f376c47efb25ded142a20f8acafd Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 10 Jun 2023 09:47:02 +0000 Subject: [PATCH] perf: qq pic mode support markdown --- cores/qqbot/core.py | 1 + model/platform/qq.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index 6ce8ffe9e..1217ce8bd 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -123,6 +123,7 @@ cc.init_attributes(["qq_forward_threshold"], 200) cc.init_attributes(["qq_welcome"], "欢迎加入本群!\n欢迎给https://github.com/Soulter/QQChannelChatGPT项目一个Star😊~\n输入help查看帮助~\n") cc.init_attributes(["bing_proxy"], "") cc.init_attributes(["qq_pic_mode"], False) +# cc.init_attributes(["qq_forward_mode"], False) def new_sub_thread(func, args=()): thread = threading.Thread(target=func, args=args, daemon=True) diff --git a/model/platform/qq.py b/model/platform/qq.py index e0f6f6f88..80598c34d 100644 --- a/model/platform/qq.py +++ b/model/platform/qq.py @@ -60,7 +60,7 @@ class QQ: plains.append(i.text) else: news.append(i) - p = gu.create_text_image("", "".join(plains)) + p = gu.create_markdown_image("".join(plains)) news.append(Image.fromFileSystem(p)) res = news