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)