2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 11:40:51 +08:00
xiaoyao-cvs-plugin/apps/srGallery.js
2023-06-06 22:42:43 +08:00

20 lines
409 B
JavaScript

import {
Cfg
} from "../components/index.js";
import {AtlasAlias} from '../model/srGallery.js'
export async function srAtlasAlias(e,{render}) {
if (!Cfg.get("sr.Search")) {
return false;
}
let reg = /(#|\*)(.*)/;
if (Cfg.get("sr.Atlas")) {
reg = /(#|\*)?(.*)图鉴/;
}
if (!reg.test(e.msg)) {
return false;
}
return await AtlasAlias(e,{render})
}