mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Create osuAPI.ts
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user