Update wiki confirm
This commit is contained in:
parent
9ccd6ea6fa
commit
9e87632cf2
4 changed files with 7 additions and 4 deletions
|
@ -57,7 +57,7 @@
|
|||
"wiki.message.not_found.autofix": "Note: [${title}] does not exist. Did you mean: [${redirected_title}]?",
|
||||
"wiki.message.not_found.autofix.choice": "Note: [${title}] does not exist. Did you mean: ",
|
||||
"wiki.message.not_found.autofix.choice.prompt": "Please directly send the specified number to obtain the corresponding content. If you reply \"Yes\", the content of ${number} will be selected by default. Sending other content means canceling the operation.",
|
||||
"wiki.message.not_found.autofix.confirm": "Note: [${title}] does not exist. Did you mean [${redirected_title}]?\n (Please directly send \"Yes\" to confirm, sending other content means canceling the operation.)",
|
||||
"wiki.message.not_found.autofix.confirm": "Note: [${title}] does not exist. Did you mean [${redirected_title}]?",
|
||||
"wiki.message.not_set": "Initial wiki not set.",
|
||||
"wiki.message.prefix.reset.success": "The prefix have been reset.",
|
||||
"wiki.message.prefix.set.success": "The prefix have been updated: ${wiki_prefix}",
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"wiki.message.not_found.autofix": "提示:[${title}]不存在,您可能要找的是:[${redirected_title}]。",
|
||||
"wiki.message.not_found.autofix.choice": "提示:[${title}]不存在,您是否想要找的是:",
|
||||
"wiki.message.not_found.autofix.choice.prompt": "请直接发送指定编号获取对应内容,若回复“是”,则默认选择 ${number} 号内容,发送其他内容则代表取消操作。",
|
||||
"wiki.message.not_found.autofix.confirm": "提示:[${title}]不存在,您是否想要找的是[${redirected_title}]?\n(请直接发送“是”字来确认,发送其他内容则代表取消操作。)",
|
||||
"wiki.message.not_found.autofix.confirm": "提示:[${title}]不存在,您是否想要找的是[${redirected_title}]?",
|
||||
"wiki.message.not_set": "未设置起始 Wiki。",
|
||||
"wiki.message.prefix.reset.success": "已重置请求时所使用的前缀。",
|
||||
"wiki.message.prefix.set.success": "已更新请求时所使用的前缀:${wiki_prefix}",
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"wiki.message.not_found.autofix": "提示:[${title}]不存在,您可能要找的是:[${redirected_title}]。",
|
||||
"wiki.message.not_found.autofix.choice": "提示:[${title}]不存在,您是否想要找的是:",
|
||||
"wiki.message.not_found.autofix.choice.prompt": "請直接傳送指定編號取得對應內容,若回覆「是」,則預設選擇 ${number} 號內容,传送其他內容則代表取消操作。",
|
||||
"wiki.message.not_found.autofix.confirm": "提示:[${title}]不存在,您是否想要找的是[${redirected_title}]?\n(請直接傳送「是」字來確認,傳送其他內容則代表取消操作。)",
|
||||
"wiki.message.not_found.autofix.confirm": "提示:[${title}]不存在,您是否想要找的是[${redirected_title}]?",
|
||||
"wiki.message.not_set": "未設定起始 Wiki。",
|
||||
"wiki.message.prefix.reset.success": "已重設請求時所使用的前綴。",
|
||||
"wiki.message.prefix.set.success": "成功:已更新請求時所使用的前綴:${wiki_prefix}",
|
||||
|
|
|
@ -231,6 +231,7 @@ async def query_pages(session: Union[Bot.MessageSession, QueryInfo], title: Unio
|
|||
if len(r.possible_research_title) > 1:
|
||||
wait_plain_slice.append(session.locale.t('wiki.message.not_found.autofix.choice',
|
||||
title=display_before_title))
|
||||
wait_plain_slice.append(session.locale.t("message.wait.confirm.prompt.type2"))
|
||||
pi = 0
|
||||
for p in r.possible_research_title:
|
||||
pi += 1
|
||||
|
@ -241,10 +242,12 @@ async def query_pages(session: Union[Bot.MessageSession, QueryInfo], title: Unio
|
|||
r.possible_research_title.index(display_title) + 1)))
|
||||
wait_possible_list.append({display_before_title: {display_title:
|
||||
r.possible_research_title}})
|
||||
wait_plain_slice.append(session.locale.t("message.wait.confirm.prompt.type2"))
|
||||
else:
|
||||
wait_plain_slice.append(session.locale.t('wiki.message.not_found.autofix.confirm',
|
||||
title=display_before_title,
|
||||
redirected_title=display_title))
|
||||
wait_plain_slice.append(session.locale.t("message.wait.confirm.prompt.type1"))
|
||||
else:
|
||||
if r.edit_link is not None:
|
||||
plain_slice.append(r.edit_link + session.locale.t('wiki.message.redlink.not_found'))
|
||||
|
@ -342,7 +345,7 @@ async def query_pages(session: Union[Bot.MessageSession, QueryInfo], title: Unio
|
|||
|
||||
async def wait_confirm():
|
||||
if wait_msg_list and session.Feature.wait:
|
||||
confirm = await session.waitNextMessage(wait_msg_list)
|
||||
confirm = await session.wait_next_message(wait_msg_list, delete=True, append_instruction=False)
|
||||
auto_index = False
|
||||
index = 0
|
||||
if confirm.as_display(text_only=True) in confirm_command:
|
||||
|
|
Reference in a new issue