modified: apps/search.js
This commit is contained in:
@@ -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("开始搜索")
|
||||
|
||||
Reference in New Issue
Block a user