UNPKG

@biskyjs/framework

Version:
34 lines 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Bisky = void 0; const arguments_1 = require("./structures/stores/arguments"); const commands_1 = require("./structures/stores/commands"); const core_1 = require("@biscuitland/core"); const pieces_1 = require("@sapphire/pieces"); const path_1 = require("path"); class Bisky extends core_1.Session { constructor(options) { super(options); /** * The registered stores. */ Object.defineProperty(this, "stores", { enumerable: true, configurable: true, writable: true, value: void 0 }); pieces_1.container.bisky = this; this.stores = new pieces_1.StoreRegistry(); pieces_1.container.stores = this.stores; this.stores .register(new commands_1.CommandStore()) .register(new arguments_1.ArgumentStore().registerPath((0, path_1.join)(__dirname, "..", "arguments"))); } async login() { await Promise.all([...this.stores.values()].map((store) => store.loadAll())); await this.start(); } } exports.Bisky = Bisky; //# sourceMappingURL=bisky.js.map