async function getFaucetList() { log('دریافت لیست فاست‌ها...'); try { const formData = new FormData(); formData.append('api_key', 'd56b31dd40eb38ec35244ae9ad95f35b040f3d7a15229197b4fc28d6fc791189'); const response = await fetch('https://faucetpay.io/api/listv1/faucetlist', { method: 'POST', body: formData }); const result = await response.json(); if (result.status === 200) { log('✅ لیست فاست‌ها دریافت شد'); // نمایش ساده‌تر let faucetHtml = '

📊 لیست فاست‌های فعال

'; const listData = result.list_data.normal; for (const currency in listData) { const faucets = listData[currency]; let activeCount = 0; if (Array.isArray(faucets)) { activeCount = faucets.filter(f => f.is_enabled === '1').length; } faucetHtml += `
${currency}: ${activeCount} فاست فعال
`; } document.getElementById('result').innerHTML = `
${faucetHtml}

💡 برای مشاهده جزئیات کامل، از ربات Python استفاده کنید

`; } else { throw new Error(result.message || 'خطای ناشناخته'); } } catch (error) { log(`❌ خطا: ${error}`); document.getElementById('result').innerHTML = `

❌ خطا در دریافت لیست

${error.message}

این ممکن است به دلیل محدودیت‌های CORS یا ساختار داده‌ها باشد. از ربات Python برای اطلاعات کامل استفاده کنید.

`; } }