From 996878cbe3eefed32fbf87e172b98e43df355f19 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 5 Feb 2021 16:14:17 +0100 Subject: :art: rename Database -> db --- dist/Config.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dist/Config.js (limited to 'dist/Config.js') diff --git a/dist/Config.js b/dist/Config.js new file mode 100644 index 00000000..948f09d6 --- /dev/null +++ b/dist/Config.js @@ -0,0 +1,28 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DefaultOptions = void 0; +require("missing-native-js-functions"); +const Database_1 = __importDefault(require("./Database")); +var Config; +exports.default = { + init: async function init(opts = exports.DefaultOptions) { + Config = Database_1.default.data.config({}).cache(); + await Config.init(); + await Config.set(opts.merge(Config.cache || {})); + }, + getAll: function get() { + return Config.get(); + }, + setAll: function set(val) { + return Config.set(val); + }, +}; +exports.DefaultOptions = { + api: {}, + gateway: {}, + voice: {}, +}; +//# sourceMappingURL=Config.js.map \ No newline at end of file -- cgit 1.5.1