removed env
This commit is contained in:
parent
3c4b16a3b1
commit
37f8dc67f8
2 changed files with 0 additions and 42 deletions
|
@ -1,6 +1,5 @@
|
||||||
export { AudioFilters } from './utils/AudioFilters';
|
export { AudioFilters } from './utils/AudioFilters';
|
||||||
export * as Constants from './utils/Constants';
|
export * as Constants from './utils/Constants';
|
||||||
export { Env as env } from './utils/env';
|
|
||||||
export { ExtractorModel } from './Structures/ExtractorModel';
|
export { ExtractorModel } from './Structures/ExtractorModel';
|
||||||
export { Player } from './Player';
|
export { Player } from './Player';
|
||||||
export { Util } from './utils/Util';
|
export { Util } from './utils/Util';
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
// @ts-ignore
|
|
||||||
import { Store, Client } from 'soundcloud-scraper';
|
|
||||||
import { YouTube } from 'youtube-sr';
|
|
||||||
|
|
||||||
export class Env {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Utility env
|
|
||||||
* <warn>This feature is Experimental</warn>
|
|
||||||
*/
|
|
||||||
constructor() {
|
|
||||||
throw new Error(`Cannot instantiate the class ${this.constructor.name}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The soundcloud client
|
|
||||||
* soundcloud.search("faded").then(console.log);
|
|
||||||
* @type {Object}
|
|
||||||
*/
|
|
||||||
static get SoundcloudClient() {
|
|
||||||
return { Client };
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The soundcloud store utils
|
|
||||||
* @type {Object}
|
|
||||||
*/
|
|
||||||
static get SoundcloudStore() {
|
|
||||||
const store = Store as Map<string, string>;
|
|
||||||
const setAPIkey = (newKey: string) => store.set('SOUNDCLOUD_API_KEY', newKey);
|
|
||||||
return { setAPIkey, store };
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The youtube search
|
|
||||||
* @type {YouTube}
|
|
||||||
*/
|
|
||||||
static get youtube() {
|
|
||||||
return YouTube;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue