mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 20:00:51 +08:00
20 lines
409 B
JavaScript
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})
|
|
} |