diff --git a/apps/query.js b/apps/query.js index d4b40b4..53f699d 100644 --- a/apps/query.js +++ b/apps/query.js @@ -24,10 +24,6 @@ export class query extends plugin { reg: "^#医药查询(.*)$", fnc: "doctor", }, - { - reg: "^#评分(.*)", - fnc: "videoScore", - }, { reg: "^#(cat)$", fnc: "cat", @@ -98,47 +94,6 @@ export class query extends plugin { return !!this.reply(await Bot.makeForwardMsg(msg)); } - async videoScore(e) { - let keyword = e.msg.replace("#评分", "").trim(); - const api = `https://movie.douban.com/j/subject_suggest?q=${encodeURI(keyword)}`; - - let movieId = 30433417; - fetch(api, { - Headers: { - "User-Agent": - "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Mobile Safari/537.36", - "Content-Type": "application/json", - }, - }) - .then(resp => resp.json()) - .then(resp => { - if (resp.length === 0 || resp === "") { - e.reply("没找到!"); - return true; - } - movieId = resp[0].id; - const doubanApi = `https://movie.querydata.org/api?id=${movieId}`; - fetch(doubanApi, { - Headers: { - "User-Agent": - "Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.25 Mobile Safari/537.36", - "Content-Type": "application/json", - }, - }) - .then(resp => resp.json()) - .then(resp => { - if (resp.length === 0 || resp === "") { - e.reply("没找到!"); - return true; - } - e.reply( - `识别:${resp.data[0].name}\n烂番茄评分:${resp.imdbRating}\n豆瓣评分:${resp.doubanRating}\n评分:${resp.imdbRating}`, - ); - }); - }); - return true; - } - async cat(e) { let images = []; let reqRes = [ diff --git a/config/help.yaml b/config/help.yaml index 6cad9f8..00e931c 100644 --- a/config/help.yaml +++ b/config/help.yaml @@ -6,9 +6,6 @@ - icon: cat title: "#cat 开始吸猫" desc: 猫咪图捕捉 - - icon: hot - title: "#评分 xxx" - desc: 电影评分 - icon: computer title: "#推荐软件" desc: 推荐PC、Android软件 diff --git a/resources/img/icon/hot.png b/resources/img/icon/hot.png deleted file mode 100644 index d53e234..0000000 Binary files a/resources/img/icon/hot.png and /dev/null differ