/*--------------------------------------------------------------------------------------- ๐Ÿ€ โ€ข By https://github.com/ALBERTO9883 ๐Ÿ€ โ€ข โš˜Alberto Y Ashlyโš˜ -----------------------------------------------------------------------------------------*/ let handler = async (m, { conn, text, usedPrefix, command }) => { let regex = /x/g if (!text) return await conn.reply(m.chat, 'โš ๏ธ ๐™” ๐™š๐™ก ๐™ฃ๐™ชฬ๐™ข๐™š๐™ง๐™ค ๐Ÿค”', m, {contextInfo: { externalAdReply :{ mediaUrl: null, mediaType: 1, description: null, title: ag, body: '๐’๐ฎ๐ฉ๐ž๐ซ ๐๐จ๐ญ ๐ƒ๐ž ๐–๐ก๐š๐ญ๐ฌ๐€๐ฉ๐ฉ', previewType: 0, thumbnail: imagen4, sourceUrl: [md, yt, fb, tiktok].getRandom()}}}) if (!text.match(regex)) throw `*๐‘ฌ๐’‹๐’†๐’Ž๐’‘๐’๐’ ๐’…๐’†๐’ ๐’–๐’”๐’: ${usedPrefix + command} 521999340434x*` let random = text.match(regex).length, total = Math.pow(10, random), array = [] for (let i = 0; i < total; i++) { let list = [...i.toString().padStart(random, '0')] let result = text.replace(regex, () => list.shift()) + '@s.whatsapp.net' if (await conn.onWhatsApp(result).then(v => (v[0] || {}).exists)) { let info = await conn.fetchStatus(result).catch(_ => {}) array.push({ exists: true, jid: result, ...info }) } else { array.push({ exists: false, jid: result }) }} let txt = 'โ€ข ๐‘๐ž๐ ๐ข๐ฌ๐ญ๐ซ๐š๐๐จ\n\n' + array.filter(v => v.exists).map(v => `โ€ข ๐๐ฎ๐ฆ๐ž๐ซ๐จ: wa.me/${v.jid.split('@')[0]}\n*โ€ข ๐‘ซ๐’†๐’”๐’„:* ${v.status || 'Sin descripcion'}\n*โ€ข ๐…๐ž๐œ๐ก๐š::* ${formatDate(v.setAt)}`).join('\n\n') + '\n\n*๐๐จ ๐ซ๐ž๐ ๐ข๐ฌ๐ญ๐ซ๐š๐๐จ:*\n\n' + array.filter(v => !v.exists).map(v => v.jid.split('@')[0]).join('\n') m.reply(txt) } handler.help = ["nowa"] handler.tags = ["tools"] handler.command = /^nowa$/i handler.register = true export default handler function formatDate(n, locale = 'id') { let d = new Date(n) return d.toLocaleDateString(locale, { timeZone: 'Asia/Jakarta' })}