1+ //=====================================| Import the Module |=====================================\\
2+
3+ const client = require ( `${ process . cwd ( ) } /index` ) . client ;
4+ const Discord = require ( 'discord.js' ) ;
5+ const colors = require ( 'colors' ) ;
6+ const dotenv = require ( 'dotenv' ) . config ( ) ;
7+ const ms = require ( 'ms' ) ;
8+ const { PREFIX } = require ( `${ process . cwd ( ) } /settings/config.json` ) ;
9+ const { author, version } = require ( `${ process . cwd ( ) } /package.json` ) ;
10+
11+ //=====================================| Code |=====================================\\
12+
13+ module . exports = {
14+ name : 'ready' ,
15+ once : true ,
16+
17+ async execute ( client , Discord ) {
18+ console . table ( {
19+ 'Name' : client . user . tag ,
20+ 'Author' : `${ author } ` ,
21+ 'Version' : `v${ version } ` ,
22+ 'Status' : `${ client . user . presence . status } ` ,
23+ 'Prefix' : PREFIX ,
24+ 'Discord.js' : `v${ Discord . version } ` ,
25+ 'Node.js' : `${ process . version } ` ,
26+ 'Guilds' : client . guilds . cache . size ,
27+ 'Users' : client . users . cache . size ,
28+ 'Channels' : client . channels . cache . size ,
29+ 'Commands' : client . commands . size ,
30+ 'slashCommands' : client . slashCommands . size ,
31+ 'ping' : ms ( client . uptime ) ,
32+ 'Memory Usage' : `${ ( process . memoryUsage ( ) . heapUsed / 1024 / 1024 ) . toFixed ( 2 ) } MB` ,
33+ 'Platform' : process . platform ,
34+ 'Arch' : process . arch ,
35+ } )
36+ console . log ( `[READY] ` . bold . green + `${ client . user . tag } is online!` . yellow ) ;
37+
38+ // Animated Status Presence
39+ const activities = [
40+ `${ PREFIX } help | ${ client . guilds . cache . size } Guilds` ,
41+ `${ PREFIX } help | ${ client . users . cache . size } Users` ,
42+ `${ PREFIX } help | Invite me Now!`
43+ ] ;
44+ setInterval ( ( ) => {
45+ let activity = activities [ Math . floor ( Math . random ( ) * activities . length ) ] ;
46+ client . user . setActivity ( activity , {
47+ type : "LISTENING" , // PLAYING, STREAMING, LISTENING, WATCHING
48+ url : "https://www.twitch.tv/"
49+ } ) ;
50+ } , 5000 ) ;
51+ }
52+ }
53+
54+
55+ /**
56+ /////////////////////////////////////////////////////////////////////
57+ //// ////
58+ \\\\ Bot Coded by GalaXd#9165 \\\\
59+ //// ////
60+ \\\\ Work for MGalaCyber Development | https://galacyber.xyz \\\\
61+ //// ////
62+ \\\\ All Right Reserved! \\\\
63+ //// ////
64+ /////////////////////////////////////////////////////////////////////
65+ */
0 commit comments