File tree Expand file tree Collapse file tree
astrbot/core/pipeline/result_decorate Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,17 +400,17 @@ async def process(
400400 )
401401 if len (result .chain ) > 1 and isinstance (result .chain [1 ], Plain ):
402402 result .chain [1 ].text = "\n " + result .chain [1 ].text
403-
404- # 引用回复
405- if self .reply_with_quote :
406- is_private = event .get_message_type () == MessageType .FRIEND_MESSAGE
407- should_quote = (
408- self .reply_with_quote_scope == "all"
409- or (self .reply_with_quote_scope == "private_only" and is_private )
410- or (self .reply_with_quote_scope == "group_only" and not is_private )
411- )
412- if should_quote and not any (
413- isinstance (item , File ) for item in result .chain
414- ):
415- result .chain .insert (0 , Reply (id = event .message_obj .message_id ))
403+
404+ # 引用回复
405+ if self .reply_with_quote :
406+ is_private = event .get_message_type () == MessageType .FRIEND_MESSAGE
407+ should_quote = (
408+ self .reply_with_quote_scope == "all"
409+ or (self .reply_with_quote_scope == "private_only" and is_private )
410+ or (self .reply_with_quote_scope == "group_only" and not is_private )
411+ )
412+ if should_quote and not any (
413+ isinstance (item , File ) for item in result .chain
414+ ):
415+ result .chain .insert (0 , Reply (id = event .message_obj .message_id ))
416416
You can’t perform that action at this time.
0 commit comments