From 4eb6f8bb01e7cd4438d03b55231a219a6a8b8ade Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Wed, 14 Dec 2022 22:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E4=B8=83=E5=9C=A3=E5=8F=AC?= =?UTF-8?q?=E5=94=A4=E6=95=B0=E6=8D=AE=E8=AF=86=E5=88=AB=EF=BC=8C=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=85=88`#=E6=9B=B4=E6=96=B0=E5=9B=BE=E9=89=B4`?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=B8=83=E5=9C=A3=E5=8F=AC=E5=94=A4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/xiaoyao_image.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/xiaoyao_image.js b/apps/xiaoyao_image.js index a3e912e..ef55a80 100644 --- a/apps/xiaoyao_image.js +++ b/apps/xiaoyao_image.js @@ -33,11 +33,9 @@ export async function AtlasAlias(e) { return send_Msg(e, "all", ""); } - export async function roleInfo(e) { - let msg = e.msg.replace(/#|#|信息|图鉴|命座|天赋/g, ""); - let Botcfg; - let id; + let msg = e.msg.replace(/#|#|信息|图鉴|命座|天赋|原牌|七圣/g, ""); + let Botcfg,id,type='juese_tujian'; if (isV3) { Botcfg = (await import(`file://${_path}/plugins/genshin/model/gsCfg.js`)).default; id = Botcfg.roleNameToID(msg) @@ -56,7 +54,10 @@ export async function roleInfo(e) { name = Botcfg.roleIdToName(id, true); if (!name) return false; } - send_Msg(e, "juese_tujian", name) + if(/原牌|七圣/.test(e.msg)) { + type=`basicInfo_tujian/role/${name}` + } + send_Msg(e, type, name) return true; } @@ -114,6 +115,7 @@ export async function Atlas_list(e) { } return false; } + const info_img = function(e, list, name) { for (let i in list) { for (let val of list[i]) {