Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Jun 12, 2023
1 parent 1e64fc1 commit 2ac2fde
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion framework/platforms/qqchannel_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ async def _response_func(chain: MessageChain, text: str, voice: None, image: Ima
nonlocal last_send_text
# 如果开启了强制转图片
if config.text_to_image.always:
await post_response_function(self, message.channel_id, message.id, image=await to_image(str(text)))
await post_response_function(
self,
message.channel_id,
message.id,
image=await to_image(text),
)
last_send_text = ''
else:
if text:
Expand Down

0 comments on commit 2ac2fde

Please sign in to comment.