From 7349aa021d8e21ca2ca04ba37171a6aafa0aea4a Mon Sep 17 00:00:00 2001 From: ctrlcvs <1509167646@qq.com> Date: Sun, 19 Jun 2022 18:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=83=A8=E5=88=86=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/xiaoyao_image.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/xiaoyao_image.js b/apps/xiaoyao_image.js index b3a21e6..e0d976d 100644 --- a/apps/xiaoyao_image.js +++ b/apps/xiaoyao_image.js @@ -80,9 +80,9 @@ export async function weaponInfo(e) { if (e.atBot) { msg = "#" + msg.replace("#", ""); } - if (!/(#*(.*)(信息|图鉴|突破)|#(.*))$/.test(msg)) return; + if (!/(#*(.*)(信息|图鉴|突破|武器|材料)|#(.*))$/.test(msg)) return; - let name = weapon.get(msg.replace(/#|#|信息|图鉴|突破/g, "")); + let name = weapon.get(msg.replace(/#|#|信息|图鉴|突破|武器|材料/g, "")); if (name) { send_Msg(e, "wuqi_tujian", name) @@ -130,7 +130,6 @@ export async function monsterInfo(e) { } if (!/(#*(原魔|怪物)(.*)|#(.*))$/.test(msg)) return; let name = msg.replace(/#|#|信息|副本|本|图鉴|数据|原魔/g, ""); - console.log(name) if (name) { send_Msg(e, "yuanmo_tujian", name) return true;