From aa890c539f93099f264678907713cc545955edfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 23 Nov 2022 08:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20help=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/cookies.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/plugins/genshin/cookies.py b/plugins/genshin/cookies.py index 87ffc41..08dd945 100644 --- a/plugins/genshin/cookies.py +++ b/plugins/genshin/cookies.py @@ -121,24 +121,24 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation): ) javascript_android = "javascript:(()=>{prompt('',document.cookie)})();" help_message = ( - f"*关于如何获取Cookies*\n\n" + f"关于如何获取Cookies\n\n" f"PC:\n" - f"[1、打开{bbs_name}并登录]({bbs_url})\n" - f"2、按F12打开开发者工具\n" - f"3、{escape_markdown('将开发者工具切换至控制台(Console)页签', version=2)}\n" - f"4、复制下方的代码,并将其粘贴在控制台中,按下回车\n" - f"`{escape_markdown(javascript, version=2, entity_type='code')}`\n\n" - f"Android:\n" - f"[1、通过 Via 浏览器打开{bbs_name}并登录]({bbs_url})\n" - f"2、复制下方的代码,并将其粘贴在地址栏中,点击右侧箭头\n" - f"`{escape_markdown(javascript_android, version=2, entity_type='code')}`" - f"iOS:\n" - f"1、在App Store上安装Web Inspector,并在iOS设置- Safari浏览器-扩展-允许这些扩展下找到Web Inspector-打开,允许所有网站\n" - f"2、[通过Safari打开{bbs_name}并登录({bbs_url})\n" - f"3、点击地址栏左侧的大小按钮 - Web Inspector扩展 - console - 点击下方文本框复制下方代码粘贴:" - f"`{escape_markdown(javascript, version=2, entity_type='code')}`" + f"1、打开 {bbs_name} 并登录\n" + "2、按F12打开开发者工具\n" + "3、将开发者工具切换至控制台(Console)\n" + "4、复制下方的代码,并将其粘贴在控制台中,按下回车\n" + f"
{javascript}
" + "Android:\n" + f"1、通过 Via 打开 {bbs_name} 并登录\n" + "2、复制下方的代码,并将其粘贴在地址栏中,点击右侧箭头\n" + f"{javascript_android}\n" + "iOS:\n" + "1、在App Store上安装Web Inspector,并在iOS设置- Safari浏览器-扩展-允许这些扩展下找到Web Inspector-打开,允许所有网站\n" + f"2、通过 Safari 打开 {bbs_name} 并登录\n" + "3、点击地址栏左侧的大小按钮 - Web Inspector扩展 - console - 点击下方文本框复制下方代码粘贴:" + f"
{javascript}
" ) - await message.reply_markdown_v2(help_message, disable_web_page_preview=True) + await message.reply_html(help_message, disable_web_page_preview=True) return INPUT_COOKIES @conversation.state(state=CHECK_PHONE)