diff --git a/src/bot/handlers/messageCreate.js b/src/bot/handlers/messageCreate.js index a9feffc..fb2fdbb 100644 --- a/src/bot/handlers/messageCreate.js +++ b/src/bot/handlers/messageCreate.js @@ -92,7 +92,7 @@ async function handleAiMention(message, client, io) { const timestamps = (requestTimestamps.get(authorId) || []).filter((ts) => now - ts < SPAM_INTERVAL); if (timestamps.length >= MAX_REQUESTS_PER_INTERVAL) { - console.log(`[${now.toLocaleString()}] Rate limit exceeded for ${authorDB.username}`); + console.log(`[${Date.now()}] Rate limit exceeded for ${authorDB.username}`); if (!authorDB.warned) { await message.reply(`T'abuses fréro, attends un peu ⏳`).catch(console.error); }