diff --git a/command/fakereply.js b/command/fakereply.js new file mode 100644 index 0000000..8e5f381 --- /dev/null +++ b/command/fakereply.js @@ -0,0 +1,14 @@ +const { MessageType } = require('@adiwajshing/baileys') + +module.exports = { + name: 'fakereply', + aliases: ['fr', 'fake', 'fitnah'], + description: 'Untuk memfitnah atau menjahili teman\nPenggunaan !fakereply _tag_', + execute (client, chat, pesan, args) { + if (!client.isGroup) return client.reply(pesan.error.group) + const targets = args[0] + const bot = args[1] + mentioned = chat.message.extendedTextMessage.contextInfo.mentionedJid + client.sendMessage(client.from, `${bot}`, MessageType.text, { quoted: { key: { fromMe: false, participant: `${mentioned}`, ...(client.from ? { remoteJid: client.from } : {}) }, message: { conversation: `${targets}` } } }) + } +}