Remove console.log debugging
This commit is contained in:
parent
acd2e2a502
commit
7b7054e9f5
1 changed files with 0 additions and 5 deletions
|
@ -7,15 +7,10 @@ module.exports = function (client) { //TODO: Add ability to reload specified com
|
||||||
let commandFiles = fs.readdirSync(filepath).filter(file => file.endsWith('.js'));
|
let commandFiles = fs.readdirSync(filepath).filter(file => file.endsWith('.js'));
|
||||||
if (client.commands.size != 0) {
|
if (client.commands.size != 0) {
|
||||||
for (const i of commandFiles) {
|
for (const i of commandFiles) {
|
||||||
console.log(i)
|
|
||||||
delete require.cache[require.resolve(`../${filepath}${i}`)];
|
delete require.cache[require.resolve(`../${filepath}${i}`)];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(client.commands.size)
|
|
||||||
client.commands.clear()
|
client.commands.clear()
|
||||||
console.log("test")
|
|
||||||
|
|
||||||
for (const file of commandFiles) {
|
for (const file of commandFiles) {
|
||||||
const command = require(`../commands/${file}`);
|
const command = require(`../commands/${file}`);
|
||||||
client.commands.set(command.name, command);
|
client.commands.set(command.name, command);
|
||||||
|
|
Loading…
Add table
Reference in a new issue