mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
25 lines
416 B
TypeScript
25 lines
416 B
TypeScript
import { Api } from 'node-osu';
|
|||
|
|
import Environment from './Environment';
|
||
|
|
|
||
|
|
class osuAPI {
|
||
|
|
|
||
|
|
public client: Api;
|
||
|
|
|
||
|
|
constructor () {
|
||
|
|
this.client = new Api(Environment.get().OSU_API_KEY, {
|
||
|
|
notFoundAsError: false,
|
||
|
|
completeScores: true,
|
||
|
|
parseNumeric: true
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
public init(): void {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public end(): void {
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
export default new osuAPI();
|