-
Notifications
You must be signed in to change notification settings - Fork 161
/
Copy pathindex.js
120 lines (93 loc) · 3.96 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
const client = require('./main');
require('./bot');
require('./shiva');
const loadEventHandlers = () => {
const colors = require('./UI/colors/colors');
// Helper function for logging
const logSystem = (system, status = '✅') => {
const timestamp = new Date().toLocaleTimeString();
console.log(
`${colors.gray}[${timestamp}]${colors.reset}`,
`${colors.cyan}[${system.padEnd(15)}]${colors.reset}`,
`${colors.green}${status}${colors.reset}`
);
};
// Clear console and show startup banner
console.clear();
// Current Date/Time and User Display
const currentDate = new Date().toISOString().replace('T', ' ').slice(0, 19);
// Fancy header
console.log('\n' + '═'.repeat(60));
console.log(`${colors.yellow}${colors.bright} 🤖 BOT SYSTEMS INITIALIZATION 🤖${colors.reset}`);
console.log('═'.repeat(60) + '\n');
// Core Systems
console.log(`\n${colors.magenta}${colors.bright}📡 CORE SYSTEMS${colors.reset}`);
console.log('─'.repeat(40));
// Welcome System
const guildMemberAddHandler = require('./events/guildMemberAdd');
guildMemberAddHandler(client);
logSystem('WELCOME');
// Ticket System
const ticketHandler = require('./events/ticketHandler');
ticketHandler(client);
logSystem('TICKET');
// Voice Channel System
const voiceChannelHandler = require('./events/voiceChannelHandler');
voiceChannelHandler(client);
logSystem('VOICE');
console.log(`\n${colors.magenta}${colors.bright}🎮 ENGAGEMENT SYSTEMS${colors.reset}`);
console.log('─'.repeat(40));
// Giveaway System
const giveawayHandler = require('./events/giveaway');
giveawayHandler(client);
logSystem('GIVEAWAY');
// Role Systems
const autoroleHandler = require('./events/autorole');
autoroleHandler(client);
logSystem('AUTOROLE');
const reactionRoleHandler = require('./events/reactionroles');
reactionRoleHandler(client);
logSystem('REACTION ROLES');
console.log(`\n${colors.magenta}${colors.bright}😀 EMOJI & AFK SYSTEMS${colors.reset}`);
console.log('─'.repeat(40));
// Emoji Systems
const nqnHandler = require('./events/nqn');
nqnHandler(client);
const emojiHandler = require('./events/emojiHandler');
emojiHandler(client);
logSystem('NQN');
logSystem('EMOJI');
// AFK System
const afkHandler = require('./events/afkHandler');
afkHandler(client);
logSystem('AFK');
console.log(`\n${colors.magenta}${colors.bright}🔔 NOTIFICATION SYSTEMS${colors.reset}`);
console.log('─'.repeat(40));
// Social Media Notifications
const startYouTubeNotifications = require('./events/youTubeHandler');
const startTwitchNotifications = require('./events/twitchHandler');
const startFacebookNotifications = require('./events/facebookHandler');
const startInstagramNotifications = require('./events/instagramHandler');
startYouTubeNotifications(client);
logSystem('YOUTUBE');
startTwitchNotifications(client);
logSystem('TWITCH');
startFacebookNotifications(client);
logSystem('FACEBOOK');
startInstagramNotifications(client);
logSystem('INSTAGRAM');
// Music System
console.log(`\n${colors.magenta}${colors.bright}🎵 MUSIC SYSTEM${colors.reset}`);
console.log('─'.repeat(40));
require('./events/music')(client);
logSystem('LAVALINK MUSIC');
require('./shiva');
// Footer
console.log('\n' + '═'.repeat(60));
console.log(`${colors.green}${colors.bright} ✨ ALL SYSTEMS INITIALIZED ✨${colors.reset}`);
console.log('═'.repeat(60) + '\n');
// Final status
console.log(`${colors.green}${colors.bright}Status: ${colors.reset}${colors.green}All systems operational${colors.reset}`);
console.log(`${colors.gray}Last checked: ${colors.reset}${colors.cyan}${new Date().toLocaleTimeString()}${colors.reset}\n`);
};
loadEventHandlers();