Cloner / plugins /gc-delete.js
𝗗𝗔π—₯π—₯π—˜π—Ÿπ—Ÿ π— π—¨π—–π—›π—˜π—₯π—œ ⚑
❄️ SUBZERO MD V 1.0.3 ❄️
c1dc9d9 unverified
raw
history blame
1.79 kB
/*
$$$$$$\ $$\
$$ __$$\ $$ |
$$ / \__|$$\ $$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\
\$$$$$$\ $$ | $$ |$$ __$$\ \____$$ |$$ __$$\ $$ __$$\ $$ __$$\
\____$$\ $$ | $$ |$$ | $$ | $$$$ _/ $$$$$$$$ |$$ | \__|$$ / $$ |
$$\ $$ |$$ | $$ |$$ | $$ | $$ _/ $$ ____|$$ | $$ | $$ |
\$$$$$$ |\$$$$$$ |$$$$$$$ |$$$$$$$$\ \$$$$$$$\ $$ | \$$$$$$ |
\______/ \______/ \_______/ \________| \_______|\__| \______/
Project Name : SubZero MD
Creator : Darrell Mucheri ( Mr Frank OFC )
Repo : https//github.com/mrfrank-ofc/SUBZERO-MD
Support : wa.me/18062212660
*/
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..πŸ‘¨β€πŸ’»βœ…')
}
})