modified: apps/search.js

This commit is contained in:
yeyang
2022-11-29 16:29:03 +08:00
parent 00d4d165b0
commit 0b9fcafb51

View File

@@ -90,7 +90,7 @@ export class example extends plugin {
}
async search(e) {
let regRet = searchReg.exec(e.msg)
if (/(lp|ip)|((i|p|l)(地址|查询))/ig.test(regRet[2])) return e.reply("(;O´)o警告触发屏蔽词", true)
if (/(lp|ip)|(i|p|l)(地址|查询)/ig.test(regRet[2])) return e.reply("(;O´)o警告触发屏蔽词", true)
let url = SEARCH_MAP[regRet[1]] + encodeURIComponent(regRet[2])
let res = await Browser.Webpage(url)
logger.mark("开始搜索")