still lagging
This commit is contained in:
parent
3e74186158
commit
6c3223b7f0
2 changed files with 37 additions and 37 deletions
|
@ -1,10 +1,10 @@
|
|||
const { readdirSync } = require("fs");
|
||||
const utils = require("../../util/functions/function");
|
||||
const utils = require("../util/functions/function");
|
||||
function cmds() {
|
||||
const categories = [];
|
||||
readdirSync("./commands").forEach(dir => {
|
||||
const dirs = readdirSync(`./commands/${dir}`).filter(file =>
|
||||
file.endsWith(".js"),
|
||||
file.endsWith(".js")
|
||||
);
|
||||
const commands = [];
|
||||
dirs.map(cmd => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
const { MessageEmbed } = require("discord.js");
|
||||
const client = require("../..");
|
||||
const client = require("..");
|
||||
/**
|
||||
* @param {String} message
|
||||
* @param {String} dir
|
||||
|
@ -205,7 +205,7 @@ module.exports = async (message, dir, file, err) => {
|
|||
)
|
||||
.setColor("RED")
|
||||
.setDescription(
|
||||
`${require("../../config").ca}\nUse \`${pre}help ${
|
||||
`${require("../config").ca}\nUse \`${pre}help ${
|
||||
pull.name
|
||||
}\` to get help\n\n `
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue