@ -1,5 +1,6 @@
import { exec } from 'node:child_process' ;
import { exec } from 'node:child_process' ;
const { statusChannel , NODE _ENV } = process . env ;
const { statusChannel , NODE _ENV } = process . env ;
import { version } from 'discord.js' ;
export default {
export default {
name : 'ready' ,
name : 'ready' ,
@ -32,12 +33,17 @@ export default {
console . log ( ` ${ client . readyAt } ` ) ;
console . log ( ` ${ client . readyAt } ` ) ;
console . log ( ` There is \x 1b[33m ${ commandSize } \x 1b[0m command loaded. ` ) ;
console . log ( ` There is \x 1b[33m ${ commandSize } \x 1b[0m command loaded. ` ) ;
console . log ( ` Running yt-dlp \x 1b[33m ${ ytdlpVersion . replace ( '\n' , '' ) } \x 1b[0m ` ) ;
console . log ( ` Running yt-dlp \x 1b[33m ${ ytdlpVersion . replace ( '\n' , '' ) } \x 1b[0m ` ) ;
console . log ( ` Running Discord.js \x 1b[33m ${ version } \x 1b[0m ` ) ;
console . log ( '===========[ READY ]===========' ) ;
console . log ( '===========[ READY ]===========' ) ;
// If stats channel settings exist, send bot stats to it
// If stats channel settings exist, send bot stats to it
if ( statusChannel && NODE _ENV !== 'development' ) {
if ( statusChannel && NODE _ENV !== 'development' ) {
const channel = client . channels . resolve ( statusChannel ) ;
const channel = client . channels . resolve ( statusChannel ) ;
channel . send ( ` Ready to serve in ${ channelSize } channels on ${ guildSize } servers. \n There is ${ commandSize } command loaded. \n Running yt-dlp ${ ytdlpVersion . replace ( '\n' , '' ) } \n ${ client . readyAt } ` ) ;
channel . send (
` Ready to serve in ${ channelSize } channels on ${ guildSize } servers. \n ` +
` There is ${ commandSize } command loaded. \n ` +
` Running yt-dlp ${ ytdlpVersion . replace ( '\n' , '' ) } \n ` +
` ${ client . readyAt } ` ) ;
}
}
} ,
} ,
} ;
} ;