diff --git a/command/fakereply.js b/command/fakereply.js index 8e5f381..97c791c 100644 --- a/command/fakereply.js +++ b/command/fakereply.js @@ -4,10 +4,11 @@ module.exports = { name: 'fakereply', aliases: ['fr', 'fake', 'fitnah'], description: 'Untuk memfitnah atau menjahili teman\nPenggunaan !fakereply _tag_', - execute (client, chat, pesan, args) { + execute (client, chat, pesan) { if (!client.isGroup) return client.reply(pesan.error.group) - const targets = args[0] - const bot = args[1] + const arg = client.body.slice(9) + const targets = arg.split('|')[1] + const bot = arg.split('|')[2] 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}` } } }) }