Skip to content

Commit

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

0 comments on commit 208f91e

Please sign in to comment.