Change: kubectl and service image
This commit is contained in:
@@ -11,8 +11,8 @@ export async function loadCommands(client: ExtendedClient): Promise<Array<string
|
||||
for(const folder of commandFolders){
|
||||
const commandsPath = path.join(foldersPath, folder);
|
||||
const commandsFiles = path.basename(__filename).endsWith('.ts')
|
||||
? (await readdir(commandsPath)).filter(file => file.endsWith('.ts'))
|
||||
: (await readdir(commandsPath)).filter(file => file.endsWith('.js'));
|
||||
? (await readdir(commandsPath)).filter(file => file.endsWith('.ts'))
|
||||
: (await readdir(commandsPath)).filter(file => file.endsWith('.js'));
|
||||
for(const file of commandsFiles){
|
||||
const filePath = path.join(commandsPath, file);
|
||||
const data = await import(filePath);
|
||||
|
||||
Reference in New Issue
Block a user