mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-09 01:01:47 +02:00
add reload commande systeme
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user