diff --git a/apps/admin.js b/apps/admin.js index 2941fa8..c3bf600 100644 --- a/apps/admin.js +++ b/apps/admin.js @@ -24,6 +24,7 @@ let cfgMap = { "帮助": "sys.help", "匹配": "sys.Atlas", "模板": "mb.len", + "目录":"Atlas.all", }; let sysCfgReg = `^#图鉴设置\s*(${lodash.keys(cfgMap).join("|")})?\s*(.*)$`; export const rule = { @@ -89,6 +90,7 @@ export async function sysCfg(e, { len:Cfg.get("mb.len", 0), imgPlus: fs.existsSync(plusPath), bg: await rodom(), //获取底图 + Atlasall:getStatus("Atlas.all"), } console.log(cfg) //渲染图像 diff --git a/apps/xiaoyao_image.js b/apps/xiaoyao_image.js index 76179d6..0f71e62 100644 --- a/apps/xiaoyao_image.js +++ b/apps/xiaoyao_image.js @@ -13,6 +13,9 @@ const __dirname = path.resolve(); const list = ["shiwu_tujian", "yuanmo_tujian", "mijin_tujian", "shengyiwu_tujian"] export async function AtlasAlias(e) { + if (!Cfg.get("Atlas.all")) { + return false; + } let reg = /#(.*)/; if (Cfg.get("sys.Atlas")) { reg = /#*(.*)图鉴/; diff --git a/resources/admin/index.html b/resources/admin/index.html index 53fabdb..ec5d137 100644 --- a/resources/admin/index.html +++ b/resources/admin/index.html @@ -30,6 +30,16 @@
图鉴匹配规则需要 开启:图鉴结尾 关闭:食物原魔、圣遗物、食物无需图鉴结尾
+
  • +
    + 图鉴目录开关 + #图鉴设置目录 + 开启/关闭 + {{@Atlasall}} +
    +
    图鉴目录 为兼容之前用js版本插件用户可以用指令关闭功能
    +
  • + +