Update backend, DB, Commands, Live Reloading
This commit is contained in:
@@ -10,7 +10,7 @@ module.exports = (client) => {
|
||||
// Clear require cache to allow updates during development
|
||||
delete require.cache[require.resolve(filePath)];
|
||||
const command = require(filePath);
|
||||
if (command.name) {
|
||||
if (command.name && !command.dev) {
|
||||
client.commands.set(command.name, command);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user