Remove unused code, clean up folder tree

This commit is contained in:
spiral 2021-07-16 21:10:49 -04:00
parent a4892d854b
commit 1e8c1261f5
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
14 changed files with 38 additions and 80 deletions

View file

@ -21,9 +21,9 @@ const Command = {
Command.commandList = new Discord.Collection();
Command.commandAliases = {};
fs.readdirSync('model/command/').forEach(file => {
fs.readdirSync('command/').forEach(file => {
if (file.substr(file.lastIndexOf('.')).toLowerCase() === '.js') {
const commandPath = `./command/${file}`;
const commandPath = `../command/${file}`;
const commandInstance = cachelessRequire(commandPath);
if (commandInstance !== null) {