Skip to content

Commit

Permalink
fakereply with split
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 20, 2021
1 parent 208f91e commit 4ed0531
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions command/fakereply.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}` } } })
}
Expand Down

0 comments on commit 4ed0531

Please sign in to comment.