mirror of
https://github.com/DarthKilroy/Spot.git
synced 2025-12-23 12:16:48 +00:00
Remove unused code, clean up folder tree
This commit is contained in:
parent
a4892d854b
commit
1e8c1261f5
14 changed files with 38 additions and 80 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue