perf: qq pic mode support markdown

This commit is contained in:
Soulter
2023-06-10 09:47:02 +00:00
parent ad0d14420a
commit 72878477dc
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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)
+1 -1
View File
@@ -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