add reload commande systeme

This commit is contained in:
VALOU3336
2024-02-28 12:00:33 +01:00
parent 29a56a3420
commit b1768e24bd
5 changed files with 57 additions and 11 deletions
+1
View File
@@ -13,6 +13,7 @@ module.exports = (client) => {
try {
delete require.cache[require.resolve(filePath)];
const command = require(filePath);
command.file = filePath;
client.commands.set(command.name, command);
if (command.aliases) {
command.aliases.forEach(alias => {