UNPKG

msg.ts

Version:

MSG is the framework for make discord bot easily

17 lines 750 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Command_1 = __importDefault(require("../class/Command")); exports.default = new Command_1.default(Command_1.default.alwaysTrue, (context) => { if (context.msg.content.startsWith(context.bot.config.prefix)) { context.ex.content = context.msg.content.slice(context.bot.config.prefix.length); return context; } return context.finish(); }, { name: 'prefix checker', description: 'check that the prefix is right', }); //# sourceMappingURL=../../src/dist/commands/prefixCheck.js.map