mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复评分匹配
This commit is contained in:
parent
289080270d
commit
c7c819878c
@ -25,7 +25,7 @@ export class query extends plugin {
|
|||||||
fnc: "doctor",
|
fnc: "doctor",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
reg: "^#*评分 (.*)",
|
reg: "^#评分(.*)",
|
||||||
fnc: "videoScore",
|
fnc: "videoScore",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -99,7 +99,7 @@ export class query extends plugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async videoScore(e) {
|
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)}`;
|
const api = `https://movie.douban.com/j/subject_suggest?q=${encodeURI(keyword)}`;
|
||||||
|
|
||||||
let movieId = 30433417;
|
let movieId = 30433417;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user