Brozy123 commited on
Commit
5862c48
·
verified ·
1 Parent(s): a3da372

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +4 -5
index.js CHANGED
@@ -23,15 +23,13 @@ const storage = require('./storage');
23
  console.log(">>> [BOOT] Storage loaded.");
24
  const roleStorage = require('./roleStorage');
25
  console.log(">>> [BOOT] RoleStorage loaded.");
 
26
  const networkFix = require('./network_fix');
27
  const server = require('./server');
28
  console.log(">>> [BOOT] Server module loaded.");
29
  const { createLineupAttachment } = require('./lineupRenderer');
30
  const { createProfileAttachment } = require('./profileRenderer');
31
 
32
- // Apply network fixes early
33
- networkFix.applyAdvancedFixes();
34
-
35
  console.log(`[SYSTEM] Starting FriendlyBot v4.0 (Watchdog Relaxed: ${new Date().toISOString()})`);
36
 
37
  process.on('unhandledRejection', (reason, promise) => {
@@ -53,11 +51,12 @@ const client = new Client({
53
  partials: [Partials.Message, Partials.Channel, Partials.Reaction],
54
  rest: {
55
  timeout: 120_000,
56
- agent: networkFix.getDispatcher(),
57
  },
58
  });
59
 
60
- console.log(`[*] Discord Client Initialized. Network hijacker will handle redirections.`);
 
61
 
62
  client.on('error', (err) => console.error('[Discord client]', err?.message || err));
63
  client.on('shardError', (err, id) => console.error(`[Discord shard ${id}]`, err?.message || err));
 
23
  console.log(">>> [BOOT] Storage loaded.");
24
  const roleStorage = require('./roleStorage');
25
  console.log(">>> [BOOT] RoleStorage loaded.");
26
+ const ultimateFix = require('./ultimate_fix');
27
  const networkFix = require('./network_fix');
28
  const server = require('./server');
29
  console.log(">>> [BOOT] Server module loaded.");
30
  const { createLineupAttachment } = require('./lineupRenderer');
31
  const { createProfileAttachment } = require('./profileRenderer');
32
 
 
 
 
33
  console.log(`[SYSTEM] Starting FriendlyBot v4.0 (Watchdog Relaxed: ${new Date().toISOString()})`);
34
 
35
  process.on('unhandledRejection', (reason, promise) => {
 
51
  partials: [Partials.Message, Partials.Channel, Partials.Reaction],
52
  rest: {
53
  timeout: 120_000,
54
+ agent: ultimateFix.dispatcher,
55
  },
56
  });
57
 
58
+ console.log(`[*] Discord Client Initialized with Ultimate Network Bypass.`);
59
+
60
 
61
  client.on('error', (err) => console.error('[Discord client]', err?.message || err));
62
  client.on('shardError', (err, id) => console.error(`[Discord shard ${id}]`, err?.message || err));