Skip to content

一套osu查询的文字形式输出框架,备用于不支持发送图片的平台

License

Notifications You must be signed in to change notification settings

ArilyChan/arilyquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ArilyQuery

一套osu查询的文字形式输出框架,备用于不支持发送图片的平台

安装

npm i ArilyChan/ArilyQuery

声明

const ArilyQuery = require("ArilyQuery");
let aq = new ArilyQuery();
// 可以自定义Api网址
let aq = new ArilyQuery("https://your.own.website/api");

stat

let user = await aq.stat({
    user: "candy",
    mode: "osu",
    server: "bancho"
});
console.log(user);

best

// 指定时间段
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);

beststat

let best = await aq.beststat({
    user: "whitecat",
    mode: "osu",
});
console.log(best);

recent

let recent = await aq.recent({
    user: "exmisser",
    mode: "mania",
    server: "sb"
});
console.log(recent);

score

let score = await aq.score({
    id: "3539986417",
    mode: "osu",
});
console.log(score);

About

一套osu查询的文字形式输出框架,备用于不支持发送图片的平台

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published