From 50c33c5213805526e3c69442971e9803d08566f2 Mon Sep 17 00:00:00 2001 From: Tigrex Dai Date: Mon, 24 Nov 2025 16:09:31 +0100 Subject: [PATCH] Fix typo for variable and comment 'Quote' (#1800) --- src/langbot/pkg/pipeline/preproc/preproc.py | 4 ++-- src/langbot/pkg/platform/sources/aiocqhttp.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/langbot/pkg/pipeline/preproc/preproc.py b/src/langbot/pkg/pipeline/preproc/preproc.py index f6f98abb..ace432d8 100644 --- a/src/langbot/pkg/pipeline/preproc/preproc.py +++ b/src/langbot/pkg/pipeline/preproc/preproc.py @@ -99,7 +99,7 @@ class PreProcessor(stage.PipelineStage): content_list: list[provider_message.ContentElement] = [] plain_text = '' - qoute_msg = query.pipeline_config['trigger'].get('misc', '').get('combine-quote-message') + quote_msg = query.pipeline_config['trigger'].get('misc', '').get('combine-quote-message') for me in query.message_chain: if isinstance(me, platform_message.Plain): @@ -114,7 +114,7 @@ class PreProcessor(stage.PipelineStage): elif isinstance(me, platform_message.File): # if me.url is not None: content_list.append(provider_message.ContentElement.from_file_url(me.url, me.name)) - elif isinstance(me, platform_message.Quote) and qoute_msg: + elif isinstance(me, platform_message.Quote) and quote_msg: for msg in me.origin: if isinstance(msg, platform_message.Plain): content_list.append(provider_message.ContentElement.from_text(msg.text)) diff --git a/src/langbot/pkg/platform/sources/aiocqhttp.py b/src/langbot/pkg/platform/sources/aiocqhttp.py index ba673796..f255a330 100644 --- a/src/langbot/pkg/platform/sources/aiocqhttp.py +++ b/src/langbot/pkg/platform/sources/aiocqhttp.py @@ -209,7 +209,7 @@ class AiocqhttpMessageConverter(abstract_platform_adapter.AbstractMessageConvert elif msg_data['type'] == 'text': reply_list.append(platform_message.Plain(text=msg_data['data']['text'])) - elif msg_data['type'] == 'forward': # 这里来应该传入转发消息组,暂时传入qoute + elif msg_data['type'] == 'forward': # 这里来应该传入转发消息组,暂时传入Quote for forward_msg_datas in msg_data['data']['content']: for forward_msg_data in forward_msg_datas['message']: await process_message_data(forward_msg_data, reply_list) @@ -259,7 +259,7 @@ class AiocqhttpMessageConverter(abstract_platform_adapter.AbstractMessageConvert # await process_message_data(msg_data, yiri_msg_list) pass - elif msg.type == 'reply': # 此处处理引用消息传入Qoute + elif msg.type == 'reply': # 此处处理引用消息传入Quote msg_datas = await bot.get_msg(message_id=msg.data['id']) for msg_data in msg_datas['message']: