2022-04-03 11:14:38 +00:00
|
|
|
import { character, wife, wifeReg } from "./apps/character.js";
|
2022-04-04 21:36:44 +00:00
|
|
|
import { consStat, abyssPct } from "./apps/stat.js";
|
2022-04-06 19:51:44 +00:00
|
|
|
import { wiki } from "./apps/wiki.js";
|
|
|
|
import lodash from "lodash";
|
2022-04-03 11:14:38 +00:00
|
|
|
|
2022-04-09 21:33:21 +00:00
|
|
|
import { rule as adminRule, updateRes, sysCfg } from "./apps/admin.js";
|
2022-04-08 21:32:54 +00:00
|
|
|
|
2022-04-09 21:33:21 +00:00
|
|
|
export { character, wife, consStat, abyssPct, wiki, updateRes, sysCfg };
|
2022-04-03 11:14:38 +00:00
|
|
|
|
|
|
|
|
2022-04-06 19:51:44 +00:00
|
|
|
let rule = {
|
2022-03-26 08:21:44 +00:00
|
|
|
character: {
|
2022-03-30 20:10:10 +00:00
|
|
|
reg: "^#(.*)?$",
|
2022-03-26 08:21:44 +00:00
|
|
|
describe: "【#刻晴】角色详情",
|
2022-03-26 21:34:33 +00:00
|
|
|
},
|
2022-03-27 13:12:00 +00:00
|
|
|
wife: {
|
2022-04-03 11:14:38 +00:00
|
|
|
reg: wifeReg,
|
2022-03-27 13:12:00 +00:00
|
|
|
describe: "【#老婆,#老公,#女儿】角色详情",
|
|
|
|
},
|
2022-04-04 21:36:44 +00:00
|
|
|
consStat: {
|
|
|
|
reg: "^#角色(持有|持有率|命座|命之座|.命)(分布|统计)?$",
|
|
|
|
},
|
|
|
|
abyssPct: {
|
|
|
|
reg: "^#深渊(第?.{1,2}层)?(角色)?出场(率|统计)*$",
|
2022-04-06 19:51:44 +00:00
|
|
|
},
|
2022-04-03 22:06:03 +00:00
|
|
|
wiki: {
|
2022-04-08 21:52:05 +00:00
|
|
|
reg: "^#.*(天赋|技能|命座|命之座|资料|照片|写真|图片|插画)$",
|
2022-04-08 21:32:54 +00:00
|
|
|
},
|
|
|
|
...adminRule
|
2022-03-26 21:34:33 +00:00
|
|
|
};
|
2022-03-26 08:21:44 +00:00
|
|
|
|
2022-04-06 19:51:44 +00:00
|
|
|
lodash.forEach(rule, (r) => {
|
|
|
|
r.priority = r.priority || 50;
|
|
|
|
r.prehash = true;
|
2022-04-08 21:32:54 +00:00
|
|
|
r.hashMark = true;
|
2022-04-06 19:51:44 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
export { rule };
|