UNPKG

@ayanaware/bentocord

Version:

Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.

27 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BentoCommand = void 0; const CodeblockBuilder_1 = require("../../builders/CodeblockBuilder"); const CommandManager_1 = require("../CommandManager"); class BentoCommand { constructor() { this.name = '@ayanaware/bentocord:BentoCommand'; this.parent = CommandManager_1.CommandManager; this.replaceable = true; this.definition = { name: ['bento', 'bentocord', { key: 'BENTOCORD_COMMAND_BENTO' }], description: { key: 'BENTOCORD_COMMAND_BENTO_DESCRIPTION', backup: 'Display bentocord details' }, hidden: true, registerSlash: false, }; } async execute(ctx) { const cb = new CodeblockBuilder_1.CodeblockBuilder(); cb.addLine('Bento Version', this.api.getBentoVersion()); const bentocord = this.api.getEntity('@ayanaware/bentocord'); cb.addLine('Bentocord Version', bentocord.version); return ctx.createResponse(cb.render()); } } exports.BentoCommand = BentoCommand; //# sourceMappingURL=Bento.js.map