Auto commit: 2026-02-15T18:35:34.320Z

This commit is contained in:
Flatlogic Bot 2026-02-15 18:35:34 +00:00
parent 6f5e1bf0c1
commit 9eb2d9d88c

View File

@ -918,11 +918,13 @@ $facebook_link = "https://www.facebook.com/profile.php?id=61587890927489";
const now = new Date();
const dateTime = now.toLocaleDateString() + ' ' + now.toLocaleTimeString();
const refId = Math.floor(1000 + Math.random() * 9000);
const currentSong = document.getElementById('track-title').innerText.replace(/\s{2,}/g, ' ').trim();
const text = `*PETICIÓN RADIO* (Ref: #${refId})\n\n` +
`*Nombre:* ${name}\n` +
`*Móvil:* ${phone}\n` +
`*Fecha:* ${dateTime}\n\n` +
`*Fecha:* ${dateTime}\n` +
`*Sonando ahora:* ${currentSong}\n\n` +
`*Mensaje:* ${message || 'Sin mensaje específico'}`;
const url = `https://wa.me/<?= str_replace('+', '', $whatsapp_number) ?>?text=${encodeURIComponent(text)}`;