From 1ca22167efb4c66959b28485f2dfa016879db988 Mon Sep 17 00:00:00 2001 From: Snowflake107 Date: Tue, 11 May 2021 19:50:00 +0545 Subject: [PATCH] player env utils --- src/utils/env.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/utils/env.ts b/src/utils/env.ts index dba993d..b704d55 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -2,17 +2,30 @@ import { Store, Client } from 'soundcloud-scraper'; import { YouTube } from 'youtube-sr'; +/** + * Utility env + */ export class Env { + + /** + * The soundcloud client + */ static get SoundcloudClient() { return Client; } + /** + * The soundcloud store utils + */ static get SoundcloudStore() { const store = Store as Map; const setAPIkey = (newKey: string) => store.set('SOUNDCLOUD_API_KEY', newKey); return { setAPIkey }; } + /** + * The youtube search + */ static get youtube() { return YouTube; }