parent
259797ed15
commit
c86986edfe
|
@ -29,9 +29,14 @@ export class disPri extends plugin {
|
|||
/** 绑定ck,抽卡链接 */
|
||||
let wordReg = /(.*)(ltoken|_MHYUUID|authkey=)(.*)|导出记录(json)*|(记录|安卓|苹果|ck|cookie|体力)帮助|^帮助$|^#*(删除|我的)ck$|^#(我的)?(uid|UID)[0-9]{0,2}$/g
|
||||
/** 自定义通行字符 */
|
||||
let disableReg = `(.*)(${cfg.other?.disableAdopt?.join('|')})(.*)`
|
||||
let disableAdopt = cfg.other?.disableAdopt
|
||||
if (!Array.isArray(disableAdopt)) {
|
||||
disableAdopt = []
|
||||
}
|
||||
disableAdopt = disableAdopt.filter(str => str != null && str !== '');
|
||||
let disableReg = `(.*)(${disableAdopt.join('|')})(.*)`
|
||||
if (this.e.raw_message) {
|
||||
if (!new RegExp(wordReg).test(this.e.raw_message) && (!new RegExp(disableReg).test(this.e.raw_message))) {
|
||||
if (!new RegExp(wordReg).test(this.e.raw_message) && (disableAdopt.length === 0 || !new RegExp(disableReg).test(this.e.raw_message))) {
|
||||
this.sendTips()
|
||||
return 'return'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue