add embed to ping.js & pass in args, cfg to commands
This commit is contained in:
@@ -27,7 +27,7 @@ cl.on('messageCreate', (msg) => {
|
||||
const cmd = cl.cmds.get(cmdName);
|
||||
|
||||
try {
|
||||
cmd.execute(msg);
|
||||
cmd.execute(msg, args, cfg);
|
||||
} catch (error) {
|
||||
console.error(
|
||||
`msgCommand error: ${cmdName} by ${msg.author.tag}\n--\n${error}\n--`
|
||||
|
||||
Reference in New Issue
Block a user