Update v1.0.0-beta.12, addition of external APIs and optimization
This commit is contained in:
@@ -12,7 +12,7 @@ function sendDiscordWebhook(url, req, statusCode) {
|
||||
|
||||
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
|
||||
|
||||
const statusEmoji = statusCode === 200 ? '✅' : '❌';
|
||||
const statusEmoji = [200, 302].includes(statusCode) ? '✅' : '❌';
|
||||
const statusMessage = `**Statut:** ${statusEmoji} (${statusCode})`;
|
||||
|
||||
const timestamp = new Date().toLocaleString('fr-FR', { timeZone: 'UTC', hour12: false });
|
||||
|
||||
Reference in New Issue
Block a user