一套osu查询的文字形式输出框架,备用于不支持发送图片的平台
npm i ArilyChan/ArilyQuery
const ArilyQuery = require("ArilyQuery");
let aq = new ArilyQuery();
// 可以自定义Api网址
let aq = new ArilyQuery("https://your.own.website/api");
let user = await aq.stat({
user: "candy",
mode: "osu",
server: "bancho"
});
console.log(user);
// 指定时间段
let best = await aq.best({
user: "exmisser",
mode: "mania",
server: "sb",
find: {
last: 3,
date: {
from: { year: 2020, month: 4, day: 3 },
to: { year: 2022, month: 4, day: 3 },
}
}
}, "min", 15);
console.log(best);
// 指定序号
let best2 = await aq.best({
user: "exmisser",
mode: "mania",
server: "sb",
find: {
id: 3
}
});
console.log(best2);
let best = await aq.beststat({
user: "whitecat",
mode: "osu",
});
console.log(best);
let recent = await aq.recent({
user: "exmisser",
mode: "mania",
server: "sb"
});
console.log(recent);
let score = await aq.score({
id: "3539986417",
mode: "osu",
});
console.log(score);