From c7c819878c69240f55716412af314831dac4bc0c Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Tue, 21 Mar 2023 01:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=AF=84=E5=88=86=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/query.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/query.js b/apps/query.js index adfc048..d4b40b4 100644 --- a/apps/query.js +++ b/apps/query.js @@ -25,7 +25,7 @@ export class query extends plugin { fnc: "doctor", }, { - reg: "^#*评分 (.*)", + reg: "^#评分(.*)", fnc: "videoScore", }, { @@ -99,7 +99,7 @@ export class query extends plugin { } async videoScore(e) { - let keyword = e.msg.split(" ")[1]; + let keyword = e.msg.replace("#评分", "").trim(); const api = `https://movie.douban.com/j/subject_suggest?q=${encodeURI(keyword)}`; let movieId = 30433417;