From 572ab1a1de5430874bc19a41fa8fd6633aea38f1 Mon Sep 17 00:00:00 2001 From: TRUkae Date: Thu, 20 Nov 2025 22:18:30 +0100 Subject: [PATCH] debug discord --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 8c59afe..ae3625b 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,10 @@ import { Client, GatewayIntentBits, WebhookClient, AuditLogEvent, OAuth2Scopes, import firstDetector from './detectors/allDetector.js'; import 'dotenv/config'; +console.log("--- DEBUG ---"); +console.log("Test Token:", process.env.DISCORD_TOKEN ? "Présent (Longueur: " + process.env.DISCORD_TOKEN.length + ")" : "ABSENT !"); +console.log("Tentative de connexion à Discord."); + const client = new Client({ makeCache: Options.cacheWithLimits({ MessageManager: 0, // le bot ne se souviendra pas des anciens messages (pas de cache)