@@ -365,7 +365,7 @@ try {
365
365
366
366
if ( 'data' in command && 'execute' in command ) {
367
367
client . commands . set ( command . data . name , command ) ;
368
- LogEngine . debug ( `Loaded command: ${ command . data . name } ` ) ;
368
+ // Individual command loading moved to summary for cleaner logs
369
369
}
370
370
else {
371
371
LogEngine . warn ( `The command at ${ filePath } is missing a required "data" or "execute" property.` ) ;
@@ -377,7 +377,8 @@ try {
377
377
}
378
378
}
379
379
380
- LogEngine . info ( `Loaded ${ client . commands . size } commands successfully.` ) ;
380
+ const commandNames = Array . from ( client . commands . keys ( ) ) . join ( ', ' ) ;
381
+ LogEngine . info ( `Loaded ${ client . commands . size } commands successfully: ${ commandNames } ` ) ;
381
382
}
382
383
catch ( error ) {
383
384
LogEngine . error ( 'Failed to load commands directory:' , error ) ;
@@ -401,6 +402,8 @@ try {
401
402
. readdirSync ( eventsPath )
402
403
. filter ( ( file ) => usingTsNode ? file . endsWith ( '.ts' ) : file . endsWith ( '.js' ) ) ;
403
404
405
+ const loadedEventNames : string [ ] = [ ] ;
406
+
404
407
for ( const file of eventFiles ) {
405
408
const filePath = path . join ( eventsPath , file ) ;
406
409
@@ -425,14 +428,14 @@ try {
425
428
client . on ( event . name , ( ...args : unknown [ ] ) => event . execute ! ( ...args ) ) ;
426
429
}
427
430
428
- LogEngine . debug ( `Loaded event: ${ event . name } ` ) ;
431
+ loadedEventNames . push ( event . name ) ;
429
432
}
430
433
catch ( error ) {
431
434
LogEngine . error ( `Failed to load event from ${ filePath } :` , error ) ;
432
435
}
433
436
}
434
437
435
- LogEngine . info ( `Loaded ${ eventFiles . length } events successfully. ` ) ;
438
+ LogEngine . info ( `Loaded ${ loadedEventNames . length } events successfully: ${ loadedEventNames . join ( ', ' ) } ` ) ;
436
439
}
437
440
catch ( error ) {
438
441
LogEngine . error ( 'Failed to load events directory:' , error ) ;
0 commit comments