Convert spaces to tabs
This commit is contained in:
parent
4576eec78a
commit
db04c07c60
17 changed files with 327 additions and 327 deletions
|
@ -4,20 +4,20 @@ const utilPath = 'util/'
|
|||
|
||||
|
||||
module.exports = function (client) {
|
||||
let utilFiles = fs.readdirSync(utilPath).filter(file => file.endsWith('.js'));
|
||||
let commandFiles = fs.readdirSync(commandPath).filter(file => file.endsWith('.js'));
|
||||
if (client.commands.size != 0) {
|
||||
for (const i of commandFiles) {
|
||||
delete require.cache[require.resolve(`../${commandPath}${i}`)];
|
||||
}
|
||||
for (const i of utilFiles){
|
||||
delete require.cache[require.resolve(`../${utilPath}${i}`)]
|
||||
}
|
||||
}
|
||||
client.commands.clear()
|
||||
for (const file of commandFiles) {
|
||||
const command = require(`../${commandPath}${file}`);
|
||||
client.commands.set(command.name, command);
|
||||
}
|
||||
let utilFiles = fs.readdirSync(utilPath).filter(file => file.endsWith('.js'));
|
||||
let commandFiles = fs.readdirSync(commandPath).filter(file => file.endsWith('.js'));
|
||||
if (client.commands.size != 0) {
|
||||
for (const i of commandFiles) {
|
||||
delete require.cache[require.resolve(`../${commandPath}${i}`)];
|
||||
}
|
||||
for (const i of utilFiles){
|
||||
delete require.cache[require.resolve(`../${utilPath}${i}`)]
|
||||
}
|
||||
}
|
||||
client.commands.clear()
|
||||
for (const file of commandFiles) {
|
||||
const command = require(`../${commandPath}${file}`);
|
||||
client.commands.set(command.name, command);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue