1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 08:20:58 -05:00
Daggerbot-TS/src/helpers/TSClient.ts

18 lines
366 B
TypeScript
Raw Normal View History

interface TokenService_API {
main: string,
beta: string,
mongodb_uri: string,
redis_uri: string,
octokit: string,
spotify: {
client: string,
secret: string
}
}
export default class TSClient {
static async Token() {
return await fetch('http://localhost:36961/daggerbot').then(x=>x.json()) as Promise<TokenService_API>
}
}