add leveling

This commit is contained in:
Stanislaw
2022-03-15 12:10:15 +01:00
parent f2371974cd
commit 4af3c0adfa
4 changed files with 45 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ const sql = require("./src/functions/postgres");
const { createClient } = require("redis");
const { Client } = require("pg");
const colors = require("colors");
const { connect } = require("http2");
colors.setTheme({
prompt: "grey",
@@ -68,7 +69,7 @@ cl.on("messageCreate", async (msg) => {
const cmd = cl.cmds.get(cmdName);
try {
cmd.execute(cl, msg, args);
cmd.execute(cl, msg, args, client);
} catch (error) {
console.error(
`msgCommand error: ${cmdName} with args ${args} by ${msg.author.tag}\n--\n${error}\n--`