Brozy123 commited on
Commit
6da4e2b
·
verified ·
1 Parent(s): b3dbe30

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -3
index.js CHANGED
@@ -31,9 +31,9 @@ const client = new Client({
31
  ],
32
  partials: [Partials.Message, Partials.Channel, Partials.Reaction],
33
  rest: {
34
- api: 'https://discordapp.com/api',
35
  version: '10',
36
- timeout: 30000
37
  },
38
  ws: {
39
  connectTimeout: 60000
@@ -52,7 +52,7 @@ const TOKEN = RAW_TOKEN ? RAW_TOKEN.trim().replace(/['"]+/g, '').replace(/[\u200
52
  if (!TOKEN) {
53
  console.error("[!] CRITICAL: No Discord token found in environment variables.");
54
  } else {
55
- console.log("[*] Token Detected and Sanitized.");
56
  }
57
 
58
  // --- 2. COMMAND REGISTRATION ---
 
31
  ],
32
  partials: [Partials.Message, Partials.Channel, Partials.Reaction],
33
  rest: {
34
+ api: 'https://canary.discord.com/api',
35
  version: '10',
36
+ timeout: 60000
37
  },
38
  ws: {
39
  connectTimeout: 60000
 
52
  if (!TOKEN) {
53
  console.error("[!] CRITICAL: No Discord token found in environment variables.");
54
  } else {
55
+ console.log(`[*] Token Found (Length: ${TOKEN.length}, Pattern: ${TOKEN.substring(0, 4)}...${TOKEN.substring(TOKEN.length - 4)})`);
56
  }
57
 
58
  // --- 2. COMMAND REGISTRATION ---