diff --git a/src/command/fakereply.ts b/src/command/fakereply.ts index 9e5f3e4..bdcb05c 100644 --- a/src/command/fakereply.ts +++ b/src/command/fakereply.ts @@ -5,12 +5,13 @@ module.exports = { name: 'fakereply', aliases: ['fr', 'fake', 'fitnah'], cooldown: 35, - description: 'Untuk memfitnah atau menjahili teman\nPenggunaan !fakereply _tag_', + description: 'Untuk memfitnah atau menjahili teman\nPenggunaan !fakereply _tag_||', execute (client: any, chat: any, pesan: any) { if (!client.isGroup) return client.reply(pesan.error.group) const arg = client.body.slice(9) const targets = arg.split('|')[1] const bot = arg.split('|')[2] + if (targets == 'undefined' || bot == 'undefined') return client.reply('Baca _!help fakereply_ biar paham') const 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}` } } }) }