msg.ts
Version:
MSG is the framework for make discord bot easily
15 lines • 642 B
JavaScript
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, (ctx) => {
ctx.ex.args = ctx.ex?.content?.trimLeft()?.split(/\s+/);
ctx.ex.command = ctx.ex.args?.[0];
return ctx;
}, {
name: 'parse arguments',
description: 'parse arguments for msg.content',
});
//# sourceMappingURL=../../src/dist/commands/parseArgs.js.map
;