Nurutomo / wabot-aq

WhatsApp Bot
GNU General Public License v3.0
710 stars 1.39k forks source link

fitur kick all member grup #611

Closed ilhamimut closed 3 years ago

ilhamimut commented 3 years ago

assalamualaikum.

gan buatin fitur kick all member dari file kick.js

terimakasih

syahrularranger commented 3 years ago

Mau di banned mark? :v

ilhamimut commented 3 years ago

Mau di banned mark? :v

Nggak gan, pokoknya yg lgsg kick seluruh member dan hanya meyisakan admin grup gitu :v

ariffb25 commented 3 years ago
let handler = async (m, { conn, text, participants }) => {

let ownerGroup = m.chat.split`-`[0] + '@s.whatsapp.net'
let users = participants.map(u => u.jid).filter(u => !(u == ownerGroup || u.includes(conn.user.jid)))
for (let u of users) if (u.endsWith('@s.whatsapp.net')) await conn.groupRemove(m.chat, [u])

}
handler.command = /^(kickall)$/i

module.exports = handler
Fokusdotid commented 3 years ago

Gampang kebanned :'v

Bintangp02 commented 3 years ago

Resiko tanggung sendiri wkwkwk