add embed to ping.js & pass in args, cfg to commands

This commit is contained in:
2021-08-23 17:30:41 +02:00
parent f1bec2d133
commit 379e6a1108
2 changed files with 9 additions and 2 deletions

View File

@@ -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--`