From eba8bd4259606f867eb8a1ec2a9594c6afcfe1b7 Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Sun, 26 Jun 2022 22:20:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9C=A3=E9=81=97=E7=89=A9js?= =?UTF-8?q?on=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/xiaoyao_image.js | 39 ++-- resources/Atlas_alias/shengyiwu_tujian.json | 198 ++++++++++++++++++++ 2 files changed, 217 insertions(+), 20 deletions(-) create mode 100644 resources/Atlas_alias/shengyiwu_tujian.json diff --git a/apps/xiaoyao_image.js b/apps/xiaoyao_image.js index 804e15f..cf8396f 100644 --- a/apps/xiaoyao_image.js +++ b/apps/xiaoyao_image.js @@ -9,7 +9,7 @@ import fetch from "node-fetch"; const _path = process.cwd(); const __dirname = path.resolve(); -const list = ["shiwu_tujian", "yuanmo_tujian","mijin_tujian"] +const list = ["shiwu_tujian", "yuanmo_tujian","mijin_tujian","shengyiwu_tujian"] export async function AtlasAlias(e) { let reg=/#(.*)/; if(Cfg.get("sys.Atlas")){ @@ -21,7 +21,7 @@ export async function AtlasAlias(e) { if (await roleInfo(e)) return true; if (await weaponInfo(e)) return true; // if (await foodInfo(e)) return true; - if (await RelicsInfo(e)) return true; + // if (await RelicsInfo(e)) return true; // if (await monsterInfo(e)) return true; var name = e.msg.replace(/#|#|信息|图鉴|命座|天赋|突破|圣遗物|食物|食材|的|特殊|材|料|特色|料理|理|色/g, ""); return send_Msg(e, "all", name); @@ -93,7 +93,6 @@ export async function init(isUpdate = false) { } export async function weaponInfo(e) { - let msg = e.msg || ''; if (e.atBot) { msg = "#" + msg.replace("#", ""); @@ -110,23 +109,23 @@ export async function weaponInfo(e) { return false; } -export async function RelicsInfo(e) { - let msg = e.msg || ''; - if (e.atBot) { - msg = "#" + msg.replace("#", ""); - } - // if (!/(#*圣遗物(.*)|#(.*))$/.test(msg)) return; - let name = msg.replace(/#|#|信息|副本|本|圣遗物|图鉴/g, ""); - let response = await fetch(`https://info.minigg.cn/artifacts?query=${encodeURIComponent(name)}`); - let res = await response.json(); - if (res?.errcode == "10006") return false; - name = res["name"]; - if (name) { - send_Msg(e, "shengyiwu_tujian", name) - return true; - } - return false; -} +// export async function RelicsInfo(e) { +// let msg = e.msg || ''; +// if (e.atBot) { +// msg = "#" + msg.replace("#", ""); +// } +// // if (!/(#*圣遗物(.*)|#(.*))$/.test(msg)) return; +// let name = msg.replace(/#|#|信息|副本|本|圣遗物|图鉴/g, ""); +// let response = await fetch(`https://info.minigg.cn/artifacts?query=${encodeURIComponent(name)}`); +// let res = await response.json(); +// if (res?.errcode == "10006") return false; +// name = res["name"]; +// if (name) { +// send_Msg(e, "shengyiwu_tujian", name) +// return true; +// } +// return false; +// } const info_img = function(e, list, name) { for (let i in list) { for (let val of list[i]) { diff --git a/resources/Atlas_alias/shengyiwu_tujian.json b/resources/Atlas_alias/shengyiwu_tujian.json new file mode 100644 index 0000000..6827353 --- /dev/null +++ b/resources/Atlas_alias/shengyiwu_tujian.json @@ -0,0 +1,198 @@ +{ + "被怜爱的少女": [ + "被怜爱的少女套", + "少女", + "少女套", + "奶妈套" + ], + "冰风迷途的勇士": [ + "冰风迷途的勇士套", + "冰套" + ], + "苍白之火": [ + "苍白之火套", + "苍白", + "苍白套" + ], + "辰砂往生录": [ + "辰砂往生录陶", + "辰砂", + "辰砂套", + "往生录", + "往生录套" + ], + "沉沦之心": [ + "沉沦之心套", + "沉沦", + "沉沦套", + "水套" + ], + "炽烈的炎之魔女": [ + "炽烈的炎之魔女套", + "魔女", + "魔女套", + "火套" + ], + "翠绿之影": [ + "翠绿之影套", + "翠绿", + "翠绿套", + "风套" + ], + "渡过烈火的贤人": [ + "渡过烈火的贤人套", + "渡火套", + "渡火", + "渡火者" + ], + "海染砗磲": [ + "海染砗磲套", + "海染", + "海染套", + "心海套", + "心海圣遗物" + ], + "华馆梦醒形骸记": [ + "华馆梦醒形骸记套", + "华馆", + "华馆套", + "防御套" + ], + "角斗士的终幕礼": [ + "角斗士的终幕礼套", + "角斗士", + "角斗士套", + "角斗", + "角斗套" + ], + "绝缘之旗印": [ + "绝缘之旗印套", + "绝缘", + "绝缘套", + "充能套" + ], + "来歆余响": [ + "来歆余响套", + "来歆", + "来歆套", + "余响", + "余响套" + ], + "流浪大地的乐团": [ + "流浪大地的乐团套", + "流浪大地", + "流浪大地套", + "乐团", + "乐团套", + "流浪", + "流浪套" + ], + "逆飞的流星": [ + "逆飞的流星套", + "逆飞", + "逆飞套", + "流星", + "流星套" + ], + "平息鸣雷的尊者": [ + "平息鸣雷的尊者套", + "平雷", + "平雷套" + ], + "千岩牢固": [ + "千岩牢固套", + "千岩", + "千岩套", + "钟离套", + "岩王帝君套" + ], + "染血的骑士道": [ + "染血的骑士道套", + "染血", + "染血套", + "骑士", + "骑士套" + ], + "如雷的盛怒": [ + "如雷", + "如雷套" + ], + "昔日宗室之仪": [ + "昔日宗室之仪套", + "宗室", + "宗室套" + ], + "悠古的磐岩": [ + "悠古的磐岩套", + "磐岩", + "磐岩套", + "岩套" + ], + "祭冰火雷水之人": [ + "祭冰之人", + "祭冰之人套", + "祭火之人", + "祭火之人套", + "祭雷之人", + "祭雷之人套", + "祭水之人", + "祭水之人套", + "祭冰", + "祭冰套", + "祭火", + "祭火套", + "祭雷", + "祭雷套", + "祭水", + "祭水套" + ], + "学士": [ + "学士套" + ], + "赌徒": [ + "赌徒套" + ], + "武人": [ + "武人套" + ], + "勇士之心": [ + "勇士之心套", + "勇士套", + "勇士" + ], + "守护之心": [ + "守护之心套", + "守护套", + "守护" + ], + "流放者": [ + "流放者套", + "流放套", + "流放" + ], + "教官": [ + "教官套" + ], + "战狂": [ + "战狂套", + "狂战", + "狂战套" + ], + "奇迹": [ + "奇迹套" + ], + "行者之心": [ + "行者之心套", + "行者", + "行者套" + ], + "游医": [ + "游医套" + ], + "幸运儿": [ + "幸运套" + ], + "冒险家": [ + "冒险套" + ] +}