17 lines
No EOL
431 B
JavaScript
17 lines
No EOL
431 B
JavaScript
const desc = "run a command with core";
|
|
const usages = " - cb <command>";
|
|
const trustLevel = 0;
|
|
|
|
function inject (client) {
|
|
const command = ((args) => {
|
|
if (args.join(" ")) {
|
|
client.cmdCore.run(args.join(" "));
|
|
} else {
|
|
client.cmdError("Expected string");
|
|
}
|
|
})
|
|
client.runCommand = command;
|
|
return command;
|
|
}
|
|
|
|
module.exports = { inject, desc, usages, trustLevel }; |