ui updates and bot updates. new commands and command handler
This commit is contained in:
@@ -7,9 +7,9 @@ module.exports = (client) => {
|
||||
|
||||
for (const file of commandFiles) {
|
||||
const filePath = path.join(commandsPath, file);
|
||||
// Clear require cache to allow updates during development
|
||||
delete require.cache[require.resolve(filePath)];
|
||||
const command = require(filePath);
|
||||
if (command.enabled === false) continue;
|
||||
|
||||
if (command.name) {
|
||||
client.commands.set(command.name, command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user