LiltenBot / plugins /gc-delete.js
mrfrank-ofc's picture
Upload 63 files
8d8b0ad verified
raw
history blame
847 Bytes
const config = require('../config')
const { cmd, commands } = require('../command')
cmd({
pattern: "delete",
react: "❌",
alias: ["del"],
desc: "delete message",
category: "group",
use: '.del',
filename: __filename
},
async(conn, mek, m,{from, l, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, isItzcp, groupAdmins, isBotAdmins, isAdmins, reply}) => {
if (!isOwner || !isAdmins) return;
try{
if (!m.quoted) return reply(mg.notextfordel);
const key = {
remoteJid: m.chat,
fromMe: false,
id: m.quoted.id,
participant: m.quoted.sender
}
await conn.sendMessage(m.chat, { delete: key })
} catch(e) {
console.log(e);
reply('SubZero Delete Successful..👨‍💻✅')
}
})