| 1234567891011121314151617181920212223242526272829 |
- /*---------------------------------------------------------------------------------------
- ๐ โข 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' })}
|