grupo-tagall.js 781 B

12345678910111213141516171819202122232425
  1. let handler = async(m, { isOwner, isAdmin, conn, text, participants, args, command }) => {
  2. if (!(isAdmin || isOwner)) {
  3. global.dfail('admin', m, conn)
  4. throw false
  5. }
  6. let pesan = args.join` `
  7. let oi = `*𝙈𝙚𝙣𝙨𝙖𝙟𝙚:* ${pesan}`
  8. let teks = `*⺀ ACTIVE GRUPO 🗣️⺀*
  9. ❏ ${oi}
  10. ❏ *𝙀𝙩𝙞𝙦𝙪𝙚𝙩𝙖𝙨:*
  11. `
  12. for (let mem of participants) {
  13. teks += `➥ @${mem.id.split('@')[0]}\n`}
  14. teks += `> ➥ ${wm}`
  15. conn.sendMessage(m.chat, { text: teks, mentions: participants.map(a => a.id) }, )
  16. }
  17. handler.help = ['tagall <mesaje>','invocar <mesaje>']
  18. handler.tags = ['group']
  19. handler.command = /^(tagall|invocar|invocacion|todos|invocación)$/i
  20. handler.admin = true
  21. handler.group = true
  22. handler.botAdmin = true
  23. export default handler