mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
38 lines
953 B
JavaScript
38 lines
953 B
JavaScript
import { character, wife, wifeReg } from "./apps/character.js";
|
|
import { consStat, abyssPct } from "./apps/stat.js";
|
|
import { wiki } from "./apps/wiki.js";
|
|
import lodash from "lodash";
|
|
|
|
import { rule as adminRule, updateRes, sysCfg } from "./apps/admin.js";
|
|
|
|
export { character, wife, consStat, abyssPct, wiki, updateRes, sysCfg };
|
|
|
|
|
|
let rule = {
|
|
character: {
|
|
reg: "^#(.*)?$",
|
|
describe: "【#刻晴】角色详情",
|
|
},
|
|
wife: {
|
|
reg: wifeReg,
|
|
describe: "【#老婆,#老公,#女儿】角色详情",
|
|
},
|
|
consStat: {
|
|
reg: "^#角色(持有|持有率|命座|命之座|.命)(分布|统计)?$",
|
|
},
|
|
abyssPct: {
|
|
reg: "^#深渊(第?.{1,2}层)?(角色)?出场(率|统计)*$",
|
|
},
|
|
wiki: {
|
|
reg: "^#.*(天赋|技能|命座|命之座|资料|照片|写真|图片|插画)$",
|
|
},
|
|
...adminRule
|
|
};
|
|
|
|
lodash.forEach(rule, (r) => {
|
|
r.priority = r.priority || 50;
|
|
r.prehash = true;
|
|
r.hashMark = true;
|
|
});
|
|
|
|
export { rule }; |