RC047 / kuhong-bot

Bisa Makenya Aja :v
https://kuhong-api.herokuapp.com
GNU General Public License v3.0
18 stars 30 forks source link

AntilinkGoogle #2

Closed lilnext01 closed 3 years ago

lilnext01 commented 3 years ago

Bagaimana cara mendapatkan Antilinks dari situs lain juga? dan bukan hanya Whatsapp. Saya mencoba ini, tetapi tidak berhasil

lilnext01 commented 3 years ago

let handler = async function(m, { conn , args, isAdmin, isBotAdmin }) {

let who = m.mentionedJid && m.mentionedJid[0] ? m.mentionedJid[0] : m.fromMe ? conn.user.jid : m.sender let username = conn.getName(who) let mentionedJid = [m.sender] let name = m.fromMe ? conn.user : conn.contacts[m.sender] let users = m.sender

conn.reply(m.chat, `Foi detectado um link de *Google* enviado por *${username}*\nDssculpe, mas você será banido deste grupo.`, m)

await conn.groupRemove(m.chat, [users]) } handler.tags = ['group'] handler.customPrefix = /www.google.com/\/([0-9A-Za-z]{20,24})/i handler.command = new RegExp handler.group = true

handler.admin = false handler.botAdmin = true

handler.fail = null

module.exports = handler

RC047 commented 3 years ago

handler.customPrefix = /chat.whatsapp.com\/([0-9A-Za-z]{20,24})/i

let handler = async function(m, { conn , args, isAdmin, isBotAdmin }) {

let who = m.mentionedJid && m.mentionedJid[0] ? m.mentionedJid[0] : m.fromMe ? conn.user.jid : m.sender let username = conn.getName(who) let mentionedJid = [m.sender] let name = m.fromMe ? conn.user : conn.contacts[m.sender] let users = m.sender

conn.reply(m.chat, `Foi detectado um link de *Google* enviado por *${username}*\nDssculpe, mas você será banido deste grupo.`, m)

await conn.groupRemove(m.chat, [users]) } handler.tags = ['group'] handler.customPrefix = /www.google.com//([0-9A-Za-z]{20,24})/i handler.command = new RegExp handler.group = true

handler.admin = false handler.botAdmin = true

handler.fail = null

module.exports = handler

handler.customPrefix = /google.com\/([0-9A-Za-z]{20,24})/i