galactic-bot/storage/Provider.js
2020-04-08 10:08:46 -06:00

18 lines
372 B
JavaScript

class Provider {
constructor(manager, config) {
if(!config) throw new Error('No config file provided!');
if(config && (!config.database || !config.url)) throw new Error('Invalid config file provided!');
this.manager = manager;
this.config = config;
this.db;
this.loaded = false;
}
}
module.exports = Provider;