radium-v2/plugins/commandError.js

12 lines
No EOL
338 B
JavaScript

const config = require("../config.json");
function inject (client) {
const cmdError = (function (message) {
client.cmdCore.run(`extras:broadcastraw &c${String(message)} \n&4${client.cmd} ${client.args.join(" ") || ""} &c←[here]`);
})
client.cmdError = cmdError;
return cmdError;
}
module.exports = { inject };